]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
If last_lr is the last listener, then lr can start out NULL.
authorBen Laurie <ben@apache.org>
Sat, 26 Jun 1999 12:25:36 +0000 (12:25 +0000)
committerBen Laurie <ben@apache.org>
Sat, 26 Jun 1999 12:25:36 +0000 (12:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83389 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/prefork/prefork.c

index e2a2114b9c16c89769f0fe0ca81fbd0649181a00..8e10f3693ab5f96aaabfe7b9454ae0a979d300bc 100644 (file)
@@ -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;