From 26642a09ec48a07dc8df84a4857b11eab77520d8 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Fri, 19 Mar 2004 11:19:37 +0000 Subject: [PATCH] Fix crash when Apache was started with no Listen directives. Submitted by: Michael Corcoran Reviewed by: Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103030 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES | 3 +++ server/listen.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 0e793cdf84..1e947c0bfd 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,9 @@ Changes with Apache 2.1.0-dev [Remove entries to the current 2.0 section below, when backported] + *) Fix crash when Apache was started with no Listen directives. + [Michael Corcoran ] + *) mod_dav: Fix a problem that could cause crashes when manipulating locks on some platforms. [Jeff Trawick] diff --git a/server/listen.c b/server/listen.c index e6873baec4..13a53ac7fd 100644 --- a/server/listen.c +++ b/server/listen.c @@ -389,7 +389,7 @@ static int ap_listen_open(apr_pool_t *pool, apr_port_t port) * is already forgotten about by the time we call accept, we won't * be hung until another connection arrives on that port */ - if (ap_listeners->next) { + if (ap_listeners && ap_listeners->next) { for (lr = ap_listeners; lr; lr = lr->next) { apr_status_t status; -- 2.50.1