OpenSSL: Modify rb_ssl_strerror() in line with other backends
This commit is contained in:
parent
45d05d8882
commit
a8db009575
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue