diff options
Diffstat (limited to 'src/lib/libcrypto/dsa/dsa_err.c')
-rw-r--r-- | src/lib/libcrypto/dsa/dsa_err.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/libcrypto/dsa/dsa_err.c b/src/lib/libcrypto/dsa/dsa_err.c index 768711994b..d7fac69154 100644 --- a/src/lib/libcrypto/dsa/dsa_err.c +++ b/src/lib/libcrypto/dsa/dsa_err.c | |||
@@ -100,12 +100,15 @@ static ERR_STRING_DATA DSA_str_reasons[]= | |||
100 | 100 | ||
101 | void ERR_load_DSA_strings(void) | 101 | void ERR_load_DSA_strings(void) |
102 | { | 102 | { |
103 | #ifndef OPENSSL_NO_ERR | 103 | static int init=1; |
104 | 104 | ||
105 | if (ERR_func_error_string(DSA_str_functs[0].error) == NULL) | 105 | if (init) |
106 | { | 106 | { |
107 | init=0; | ||
108 | #ifndef OPENSSL_NO_ERR | ||
107 | ERR_load_strings(0,DSA_str_functs); | 109 | ERR_load_strings(0,DSA_str_functs); |
108 | ERR_load_strings(0,DSA_str_reasons); | 110 | ERR_load_strings(0,DSA_str_reasons); |
109 | } | ||
110 | #endif | 111 | #endif |
112 | |||
113 | } | ||
111 | } | 114 | } |