Commit 0999194d authored by Jeff Trawick's avatar Jeff Trawick
Browse files

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
parent b1be11c2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -224,7 +224,7 @@ 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,
            ap_log_error(APLOG_MARK, APLOG_CRIT, status, NULL,
			 "alloc_listener: failed to set up sockaddr for %s", addr);
            return;
        }