diff options
author | Jeff Trawick <trawick@apache.org> | 2004-03-19 12:19:37 +0100 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2004-03-19 12:19:37 +0100 |
commit | 26642a09ec48a07dc8df84a4857b11eab77520d8 (patch) | |
tree | 5ad63357e986d2a5047fb47de141b2fd3ecb5629 /server | |
parent | *) SECURITY: CAN-2004-0174 (cve.mitre.org) (diff) | |
download | apache2-26642a09ec48a07dc8df84a4857b11eab77520d8.tar.xz apache2-26642a09ec48a07dc8df84a4857b11eab77520d8.zip |
Fix crash when Apache was started with no Listen directives.
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
Diffstat (limited to 'server')
-rw-r--r-- | server/listen.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |