OpenSSL: Modify rb_ssl_strerror() in line with other backends

This commit is contained in:
Aaron Jones 2016-09-15 19:22:45 +00:00
parent 45d05d8882
commit a8db009575
No known key found for this signature in database
GPG key ID: EC6F86EE9CD840B5

View file

@ -183,11 +183,11 @@ rb_ssl_tryconn_cb(rb_fde_t *const F, void *const data)
static const char * static const char *
rb_ssl_strerror(unsigned long err) 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 static int