]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix Windows strerror_r() implementation 785/head
authorGreg Hudson <ghudson@mit.edu>
Wed, 6 Jun 2018 22:26:42 +0000 (18:26 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 8 Jun 2018 03:20:52 +0000 (23:20 -0400)
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

index e1ca5651078d602e765efc6353f4e3e85d0cb7f3..090e1791236b7f9af3ebffee5f3d31f470c77203 100644 (file)
@@ -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)