]>
Commit | Line | Data |
---|---|---|
0e467b1f AM |
1 | |
2 | Fix to use load human-readable error strings and to use | |
3 | thread-safe error retrieval interface. | |
4 | ||
5 | --- httpd-2.0.46/modules/ssl/ssl_engine_log.c.sslerr | |
6 | +++ httpd-2.0.46/modules/ssl/ssl_engine_log.c | |
7 | @@ -118,8 +118,8 @@ | |
8 | unsigned long e; | |
9 | ||
10 | while ((e = ERR_get_error())) { | |
11 | - char *err, *annotation; | |
12 | - err = ERR_error_string(e, NULL); | |
13 | + char err[256], *annotation; | |
14 | + ERR_error_string_n(e, err, sizeof err); | |
15 | annotation = ssl_log_annotation(err); | |
16 | ||
17 | if (annotation) { | |
18 | --- httpd-2.0.46/modules/ssl/ssl_engine_init.c.sslerr | |
19 | +++ httpd-2.0.46/modules/ssl/ssl_engine_init.c | |
20 | @@ -1260,7 +1260,6 @@ | |
21 | /* | |
22 | * Try to kill the internals of the SSL library. | |
23 | */ | |
24 | - ERR_free_strings(); | |
25 | ERR_remove_state(0); | |
26 | EVP_cleanup(); | |
27 |