Fix error handling at openssl_strerror_r
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Fri, 14 Jun 2019 12:48:37 +0000 (14:48 +0200)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Tue, 18 Jun 2019 11:56:27 +0000 (13:56 +0200)
commite7a4682d0b347f0dfba629f4601a28801e54ad67
treef8ca9437dda2f6c760fafb2192fb72ecc34c7ff8
parente24bdcde5a80a7edeb1e0dbbcf45c3353a974974
Fix error handling at openssl_strerror_r

When bufsize == 0, openssl_strerror_r should return 0 (if _GNU_SOURCE is defined),
to be consistent with non-_GNU_SOURCE variants, which exhibit the same behavior.
Fix a few cases, where the return value of openssl_strerror_r was ignored.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9163)
crypto/o_str.c
crypto/store/loader_file.c