summaryrefslogtreecommitdiffstats
path: root/modules/ssl/ssl_engine_log.c
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2003-10-30 13:15:28 +0100
committerJoe Orton <jorton@apache.org>2003-10-30 13:15:28 +0100
commit1a97fbae072f129c7313f51f79022429ad3c46ae (patch)
treeb5a5cddb1357bb0c238101802f3195025449b7ef /modules/ssl/ssl_engine_log.c
parentFix missing human-readable error information in SSL log messages: (diff)
downloadapache2-1a97fbae072f129c7313f51f79022429ad3c46ae.tar.xz
apache2-1a97fbae072f129c7313f51f79022429ad3c46ae.zip
* ssl_engine_log.c (ssl_log_ssl_error): Use the thread-safe
interface for retrieving error strings. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101625 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/ssl/ssl_engine_log.c')
-rw-r--r--modules/ssl/ssl_engine_log.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/ssl/ssl_engine_log.c b/modules/ssl/ssl_engine_log.c
index 6ce8d9d02b..3ea3b50e3e 100644
--- a/modules/ssl/ssl_engine_log.c
+++ b/modules/ssl/ssl_engine_log.c
@@ -118,8 +118,9 @@ void ssl_log_ssl_error(const char *file, int line, int level, server_rec *s)
unsigned long e;
while ((e = ERR_get_error())) {
- char *err, *annotation;
- err = ERR_error_string(e, NULL);
+ char err[256], *annotation;
+
+ ERR_error_string_n(e, err, sizeof err);
annotation = ssl_log_annotation(err);
if (annotation) {