From a8db009575349fe21e3e59dca4ff22a1929adf4c Mon Sep 17 00:00:00 2001 From: Aaron Jones Date: Thu, 15 Sep 2016 19:22:45 +0000 Subject: [PATCH] OpenSSL: Modify rb_ssl_strerror() in line with other backends --- libratbox/src/openssl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libratbox/src/openssl.c b/libratbox/src/openssl.c index 13b7afb9..6bcf366b 100644 --- a/libratbox/src/openssl.c +++ b/libratbox/src/openssl.c @@ -183,11 +183,11 @@ rb_ssl_tryconn_cb(rb_fde_t *const F, void *const data) static const char * rb_ssl_strerror(unsigned long err) { - static char buf[512]; + static char errbuf[512]; - ERR_error_string_n(err, buf, sizeof buf); + ERR_error_string_n(err, errbuf, sizeof errbuf); - return buf; + return errbuf; } static int