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/dh/dh_err.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crypto/dh') diff --git a/crypto/dh/dh_err.c b/crypto/dh/dh_err.c index a5348b1aab..4e21f284bd 100644 --- a/crypto/dh/dh_err.c +++ b/crypto/dh/dh_err.c @@ -60,7 +60,7 @@ static ERR_STRING_DATA DH_str_reasons[] = { #endif -void ERR_load_DH_strings(void) +int ERR_load_DH_strings(void) { #ifndef OPENSSL_NO_ERR @@ -69,4 +69,5 @@ void ERR_load_DH_strings(void) ERR_load_strings(0, DH_str_reasons); } #endif + return 1; } -- cgit v1.2.3