diff options
author | Kurt Roeckx <kurt@roeckx.be> | 2016-07-12 15:50:06 +0200 |
---|---|---|
committer | Kurt Roeckx <kurt@roeckx.be> | 2016-07-20 19:20:53 +0200 |
commit | 69588edbaa424beb71c6a9b1be416588232cb78c (patch) | |
tree | bc2d601241ea428fac0bc35d215b3964f0fce199 /crypto/cpt_err.c | |
parent | Don't allocate r/s in DSA_SIG and ECDSA_SIG (diff) | |
download | openssl-69588edbaa424beb71c6a9b1be416588232cb78c.tar.xz openssl-69588edbaa424beb71c6a9b1be416588232cb78c.zip |
Check for errors allocating the error strings.
Reviewed-by: Richard Levitte <levitte@openssl.org>
GH: #1330
Diffstat (limited to 'crypto/cpt_err.c')
-rw-r--r-- | crypto/cpt_err.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/cpt_err.c b/crypto/cpt_err.c index 3c6e8d53d2..c28dcf19a7 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; } |