From: Ben Laurie Date: Sat, 26 Jun 1999 12:25:36 +0000 (+0000) Subject: If last_lr is the last listener, then lr can start out NULL. X-Git-Tag: 1.3.7~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e021b95dedba566738ea8f951604ac47922adaae;p=thirdparty%2Fapache%2Fhttpd.git If last_lr is the last listener, then lr can start out NULL. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83389 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/prefork/prefork.c b/server/mpm/prefork/prefork.c index e2a2114b9c1..8e10f3693ab 100644 --- a/server/mpm/prefork/prefork.c +++ b/server/mpm/prefork/prefork.c @@ -2190,11 +2190,11 @@ static void child_main(int child_num_arg) lr = last_lr->next; } while (lr != last_lr) { - if (FD_ISSET(lr->fd, &main_fds)) break; - lr = lr->next; if (!lr) { lr = ap_listeners; } + if (FD_ISSET(lr->fd, &main_fds)) break; + lr = lr->next; } if (lr == last_lr) { continue;