]> granicus.if.org Git - apache/commitdiff
Fix crash when Apache was started with no Listen directives.
authorJeff Trawick <trawick@apache.org>
Fri, 19 Mar 2004 11:19:37 +0000 (11:19 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 19 Mar 2004 11:19:37 +0000 (11:19 +0000)
Submitted by: Michael Corcoran <mcorcoran warpsolutions.com>
Reviewed by:  Jeff Trawick

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103030 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
server/listen.c

diff --git a/CHANGES b/CHANGES
index 0e793cdf844d91de340f16b0264dbfda93771e48..1e947c0bfdf89f1ad5e6cc9952814b1633bafd3d 100644 (file)
--- 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 <mcorcoran warpsolutions.com>]
+
   *) mod_dav: Fix a problem that could cause crashes when manipulating 
      locks on some platforms.  [Jeff Trawick]
 
index e6873baec489752a64a2705afc74cf96a4e26362..13a53ac7fdbb350a4649a19d7c7293f04a5a8267 100644 (file)
@@ -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;