]> granicus.if.org Git - apache/commitdiff
* ssl_engine_log.c (ssl_log_ssl_error): Use the thread-safe
authorJoe Orton <jorton@apache.org>
Thu, 30 Oct 2003 12:15:28 +0000 (12:15 +0000)
committerJoe Orton <jorton@apache.org>
Thu, 30 Oct 2003 12:15:28 +0000 (12:15 +0000)
interface for retrieving error strings.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101625 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_engine_log.c

index 6ce8d9d02b4d44e882e316ef4be585ded8412e9b..3ea3b50e3edddffcb445c988b2fa9f4b48f663d9 100644 (file)
@@ -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) {