summaryrefslogtreecommitdiffstats
path: root/ssl
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 /ssl
parent8cc44d970ced1004db0727d7a7b3e2709c442e55 (diff)
Check for errors allocating the error strings.
Reviewed-by: Richard Levitte <levitte@openssl.org> GH: #1330
Diffstat (limited to 'ssl')
-rw-r--r--ssl/ssl_err.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ssl/ssl_err.c b/ssl/ssl_err.c
index aed91e3b00..f573633ac6 100644
--- a/ssl/ssl_err.c
+++ b/ssl/ssl_err.c
@@ -661,7 +661,7 @@ static ERR_STRING_DATA SSL_str_reasons[] = {
#endif
-void ERR_load_SSL_strings(void)
+int ERR_load_SSL_strings(void)
{
#ifndef OPENSSL_NO_ERR
@@ -670,4 +670,5 @@ void ERR_load_SSL_strings(void)
ERR_load_strings(0, SSL_str_reasons);
}
#endif
+ return 1;
}