krb5 commit: Fix Windows strerror_r() implementation
Greg Hudson <[email protected]>
| Newsgroups | gmane.comp.encryption.kerberos.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://github.com/krb5/krb5/commit/e952578cab6c954c3804323fb5ff256858c3b86c commit e952578cab6c954c3804323fb5ff256858c3b86c Author: Greg Hudson <[email protected]> Date: Wed Jun 6 18:26:42 2018 -0400 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) src/util/support/strerror_r.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/util/support/strerror_r.c b/src/util/support/strerror_r.c index e1ca565..090e179 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)