From: Joe Orton Date: Thu, 30 Oct 2003 12:15:28 +0000 (+0000) Subject: * ssl_engine_log.c (ssl_log_ssl_error): Use the thread-safe X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=442485f63ba2e76d6eb94c8be2ad1442f25ab449;p=thirdparty%2Fapache%2Fhttpd.git * 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/modules/ssl@101625 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/ssl_engine_log.c b/ssl_engine_log.c index 6ce8d9d02b4..3ea3b50e3ed 100644 --- a/ssl_engine_log.c +++ b/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) {