From f48505bfb2b479694c01f7c56bd3548dfe243f46 Mon Sep 17 00:00:00 2001 From: Gary Lin Date: Wed, 15 Mar 2017 15:42:28 +0800 Subject: Update to openssl 1.0.2k Signed-off-by: Gary Lin --- Cryptlib/OpenSSL/crypto/err/err.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Cryptlib/OpenSSL/crypto/err') diff --git a/Cryptlib/OpenSSL/crypto/err/err.c b/Cryptlib/OpenSSL/crypto/err/err.c index e77d963b..52dc9a5d 100644 --- a/Cryptlib/OpenSSL/crypto/err/err.c +++ b/Cryptlib/OpenSSL/crypto/err/err.c @@ -868,6 +868,9 @@ void ERR_error_string_n(unsigned long e, char *buf, size_t len) const char *ls, *fs, *rs; unsigned long l, f, r; + if (len == 0) + return; + l = ERR_GET_LIB(e); f = ERR_GET_FUNC(e); r = ERR_GET_REASON(e); -- cgit v1.2.3