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/ec/ec_err.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crypto/ec/ec_err.c') diff --git a/crypto/ec/ec_err.c b/crypto/ec/ec_err.c index 25dea23..39e8343 100644 --- a/crypto/ec/ec_err.c +++ b/crypto/ec/ec_err.c @@ -271,7 +271,7 @@ static ERR_STRING_DATA EC_str_reasons[] = { #endif -void ERR_load_EC_strings(void) +int ERR_load_EC_strings(void) { #ifndef OPENSSL_NO_ERR @@ -280,4 +280,5 @@ void ERR_load_EC_strings(void) ERR_load_strings(0, EC_str_reasons); } #endif + return 1; } -- cgit v1.1