From 69588edbaa424beb71c6a9b1be416588232cb78c Mon Sep 17 00:00:00 2001 From: Kurt Roeckx Date: Tue, 12 Jul 2016 15:50:06 +0200 Subject: Check for errors allocating the error strings. Reviewed-by: Richard Levitte GH: #1330 --- crypto/cpt_err.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crypto/cpt_err.c') diff --git a/crypto/cpt_err.c b/crypto/cpt_err.c index 3c6e8d5..c28dcf1 100644 --- a/crypto/cpt_err.c +++ b/crypto/cpt_err.c @@ -42,7 +42,7 @@ static ERR_STRING_DATA CRYPTO_str_reasons[] = { #endif -void ERR_load_CRYPTO_strings(void) +int ERR_load_CRYPTO_strings(void) { #ifndef OPENSSL_NO_ERR @@ -51,4 +51,5 @@ void ERR_load_CRYPTO_strings(void) ERR_load_strings(0, CRYPTO_str_reasons); } #endif + return 1; } -- cgit v1.1