]> granicus.if.org Git - apache/commitdiff
* server/listen.c (open_listeners): Avoid shadowing the 'next'
authorJoe Orton <jorton@apache.org>
Thu, 1 Sep 2005 11:55:31 +0000 (11:55 +0000)
committerJoe Orton <jorton@apache.org>
Thu, 1 Sep 2005 11:55:31 +0000 (11:55 +0000)
variable at function-scope.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@265701 13f79535-47bb-0310-9956-ffa450edef68

server/listen.c

index fc584742aa45e67b445b8b40ee9c05760123a2ee..e7708221184db3ee9652c14343bded6e6c106fbd 100644 (file)
@@ -388,7 +388,7 @@ static int open_listeners(apr_pool_t *pool)
                 && lr->bind_addr->port == lr->next->bind_addr->port
                 && IS_IN6ADDR_ANY(lr->next->bind_addr)) {
                 /* Exchange lr and lr->next */
-                ap_listen_rec *next = lr->next;
+                next = lr->next;
                 lr->next = next->next;
                 next->next = lr;
                 if (previous) {