diff options
Diffstat (limited to 'src/lib/libcrypto/cpt_err.c')
-rw-r--r-- | src/lib/libcrypto/cpt_err.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/libcrypto/cpt_err.c b/src/lib/libcrypto/cpt_err.c index 9fd41fff8c..06a6109cce 100644 --- a/src/lib/libcrypto/cpt_err.c +++ b/src/lib/libcrypto/cpt_err.c | |||
@@ -92,12 +92,15 @@ static ERR_STRING_DATA CRYPTO_str_reasons[]= | |||
92 | 92 | ||
93 | void ERR_load_CRYPTO_strings(void) | 93 | void ERR_load_CRYPTO_strings(void) |
94 | { | 94 | { |
95 | #ifndef OPENSSL_NO_ERR | 95 | static int init=1; |
96 | 96 | ||
97 | if (ERR_func_error_string(CRYPTO_str_functs[0].error) == NULL) | 97 | if (init) |
98 | { | 98 | { |
99 | init=0; | ||
100 | #ifndef OPENSSL_NO_ERR | ||
99 | ERR_load_strings(0,CRYPTO_str_functs); | 101 | ERR_load_strings(0,CRYPTO_str_functs); |
100 | ERR_load_strings(0,CRYPTO_str_reasons); | 102 | ERR_load_strings(0,CRYPTO_str_reasons); |
101 | } | ||
102 | #endif | 103 | #endif |
104 | |||
105 | } | ||
103 | } | 106 | } |