Commit f3d438af authored by Joe Orton's avatar Joe Orton
Browse files

* server/listen.c (open_listeners): Fix logic error caught by

  Coverity; possible NULL pointer deref at startup with a
  particular (and unlikely) listener/system config.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1209417 13f79535-47bb-0310-9956-ffa450edef68
parent 1ace2298
Loading
Loading
Loading
Loading
+1 −1
Changes for server/listen.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -416,7 +416,7 @@ static int open_listeners(apr_pool_t *pool)
             * listen (which would generate an error). IPv4 will be handled
             * on the established IPv6 socket.
             */
            if (IS_INADDR_ANY(lr->bind_addr)) {
            if (IS_INADDR_ANY(lr->bind_addr) && previous) {
                for (cur = ap_listeners; cur != lr; cur = cur->next) {
                    if (lr->bind_addr->port == cur->bind_addr->port
                        && IS_IN6ADDR_ANY(cur->bind_addr)