Return-Path: Delivered-To: apmail-apache-cvs-archive@apache.org Received: (qmail 19053 invoked by uid 500); 17 Dec 2000 12:30:31 -0000 Mailing-List: contact apache-cvs-help@apache.org; run by ezmlm Precedence: bulk Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list apache-cvs@apache.org Received: (qmail 19042 invoked by uid 500); 17 Dec 2000 12:30:30 -0000 Delivered-To: apmail-httpd-2.0-cvs@apache.org Date: 17 Dec 2000 12:30:30 -0000 Message-ID: <20001217123030.19038.qmail@locus.apache.org> From: trawick@locus.apache.org To: httpd-2.0-cvs@apache.org Subject: cvs commit: httpd-2.0/server listen.c trawick 00/12/17 04:30:29 Modified: server listen.c Log: 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. Revision Changes Path 1.43 +2 -2 httpd-2.0/server/listen.c Index: listen.c =================================================================== RCS file: /home/cvs/httpd-2.0/server/listen.c,v retrieving revision 1.42 retrieving revision 1.43 diff -u -r1.42 -r1.43 --- listen.c 2000/12/16 14:49:18 1.42 +++ listen.c 2000/12/17 12:30:29 1.43 @@ -224,8 +224,8 @@ */ 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,