Check for errors allocating the error strings. Reviewed-by: Richard Levitte <levitte@openssl.org> GH: #1330
diff --git a/ssl/ssl_err.c b/ssl/ssl_err.c index aed91e3..f573633 100644 --- a/ssl/ssl_err.c +++ b/ssl/ssl_err.c
@@ -661,7 +661,7 @@ #endif -void ERR_load_SSL_strings(void) +int ERR_load_SSL_strings(void) { #ifndef OPENSSL_NO_ERR @@ -670,4 +670,5 @@ ERR_load_strings(0, SSL_str_reasons); } #endif + return 1; }