From: Greg Hudson Date: Wed, 6 Jun 2018 22:26:42 +0000 (-0400) Subject: Fix Windows strerror_r() implementation X-Git-Tag: krb5-1.17-beta1~113 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F785%2Fhead;p=thirdparty%2Fkrb5.git Fix Windows strerror_r() implementation Commit 6351586a771e9a99e1e946cc9a0b6a87bbb14094 (ticket 7961) introduced several variants of strerror_r(). The Windows one contained a bug which made its return value undefined; fix that. ticket: 8690 (new) --- diff --git a/src/util/support/strerror_r.c b/src/util/support/strerror_r.c index e1ca565107..090e179123 100644 --- a/src/util/support/strerror_r.c +++ b/src/util/support/strerror_r.c @@ -46,6 +46,7 @@ k5_strerror_r(int errnum, char *buf, size_t buflen) errno = st; return -1; } + return 0; } #elif !defined(HAVE_STRERROR_R)