From cb38a3c8ca28d2667d8b083dc252e7dc9f3e2943 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Sun, 17 Dec 2000 12:30:29 +0000 Subject: [PATCH] Call ap_log_error() instead of ap_log_rerror() from alloc_listener(). This bug, introduced in a recent commit, caused a segfault when the hostname couldn't be resolved. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87386 13f79535-47bb-0310-9956-ffa450edef68 --- server/listen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/listen.c b/server/listen.c index 9a44b81599..a753ad1a3d 100644 --- a/server/listen.c +++ b/server/listen.c @@ -224,8 +224,8 @@ static void alloc_listener(process_rec *process, char *addr, apr_port_t port) */ if ((status = apr_getaddrinfo(&new->bind_addr, addr, APR_UNSPEC, port, 0, process->pool)) != APR_SUCCESS) { - ap_log_rerror(APLOG_MARK, APLOG_CRIT, status, NULL, - "alloc_listener: failed to set up sockaddr for %s", addr); + ap_log_error(APLOG_MARK, APLOG_CRIT, status, NULL, + "alloc_listener: failed to set up sockaddr for %s", addr); return; } if ((status = apr_create_socket(&new->sd, new->bind_addr->sa.sin.sin_family, -- 2.50.1