Skip to content

Commit

Permalink
src/openssl.c: fix GNU version of strerror_r
Browse files Browse the repository at this point in the history
GNU version of strerror_r may return pointer to different place than dst
variable, and former version of code was throwing away these results and
returned an empty string from dst.
  • Loading branch information
pspacek committed Dec 30, 2019
1 parent 87188b7 commit 5ad909d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5ad909d

Please sign in to comment.