aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/openssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openssl.c b/src/openssl.c
index 45e3517..9a9de0f 100644
--- a/src/openssl.c
+++ b/src/openssl.c
@@ -998,7 +998,7 @@ static const char *aux_strerror_r(int error, char *dst, size_t lim) {
char *rv = strerror_r(error, dst, lim);
if (rv != NULL)
- return dst;
+ return rv;
#else
int rv = strerror_r(error, dst, lim);