summaryrefslogtreecommitdiffstats
path: root/crypto/pkcs7/pkcs7err.c
diff options
context:
space:
mode:
authorKurt Roeckx <kurt@roeckx.be>2016-07-12 15:50:06 +0200
committerKurt Roeckx <kurt@roeckx.be>2016-07-20 19:20:53 +0200
commit69588edbaa424beb71c6a9b1be416588232cb78c (patch)
treebc2d601241ea428fac0bc35d215b3964f0fce199 /crypto/pkcs7/pkcs7err.c
parentDon't allocate r/s in DSA_SIG and ECDSA_SIG (diff)
downloadopenssl-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/pkcs7/pkcs7err.c')
-rw-r--r--crypto/pkcs7/pkcs7err.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/pkcs7/pkcs7err.c b/crypto/pkcs7/pkcs7err.c
index bcb479d506..d5baa9b832 100644
--- a/crypto/pkcs7/pkcs7err.c
+++ b/crypto/pkcs7/pkcs7err.c
@@ -118,7 +118,7 @@ static ERR_STRING_DATA PKCS7_str_reasons[] = {
#endif
-void ERR_load_PKCS7_strings(void)
+int ERR_load_PKCS7_strings(void)
{
#ifndef OPENSSL_NO_ERR
@@ -127,4 +127,5 @@ void ERR_load_PKCS7_strings(void)
ERR_load_strings(0, PKCS7_str_reasons);
}
#endif
+ return 1;
}