]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix crash when Apache was started with no Listen directives.
authorBill Stoddard <stoddard@apache.org>
Thu, 25 Mar 2004 02:32:54 +0000 (02:32 +0000)
committerBill Stoddard <stoddard@apache.org>
Thu, 25 Mar 2004 02:32:54 +0000 (02:32 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@103148 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
STATUS
server/listen.c

diff --git a/CHANGES b/CHANGES
index 6cbcae59be7ebf41a5035e3826e5468fd34a2397..21d08246f3d5017aff642f7636c507e8b10b0ac2 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,8 @@
 Changes with Apache 2.0.50
 
+  *) Fix crash when Apache was started with no Listen directives.
+     [Michael Corcoran <mcorcoran warpsolutions.com>]
+
   *) core_output_filter: Fix bug that could result in sending
      garbage over the network when module handlers construct
      bucket brigades containing multiple file buckets all referencing
diff --git a/STATUS b/STATUS
index b0133586a682d843284c5409528c8025f69c44be..e89b8edd842805ea5b2a415d203847d313348c88 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -1,5 +1,5 @@
 APACHE 2.0 STATUS:                                              -*-text-*-
-Last modified at [$Date: 2004/03/25 02:20:27 $]
+Last modified at [$Date: 2004/03/25 02:32:52 $]
 
 Release:
 
@@ -88,11 +88,6 @@ PATCHES TO BACKPORT FROM 2.1
            modules/dav/fs/lock.c: r1.31
        +1: trawick
 
-    *) Michael Corcoran's patch to listen.c to avoid segfault when
-       there are no Listen directives.
-           server/listen.c: r1.101
-       +1: trawick, stoddard, rederpj
-
     *) Limit the concurrency in 'ab' to MAX_CONCURRENCY to prevent a 
        segmentation fault.
            support/ab.c: r1.140, r1.141
index cad3fc90aed7c26f63c5187ce3049b3748d477ce..28933e14089a8a2d2f06af4ff8e95e4f88cece00 100644 (file)
@@ -335,7 +335,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;