]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
follow up r1599531 and r1599593:
authorTakashi Sato <takashi@apache.org>
Tue, 10 Jun 2014 07:05:06 +0000 (07:05 +0000)
committerTakashi Sato <takashi@apache.org>
Tue, 10 Jun 2014 07:05:06 +0000 (07:05 +0000)
C99fix

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

server/listen.c

index abc9806df75e3c6e9f5d9114a3b6eef23e4ea68f..cded30e2e0e084d2ffb706c03dd39db04d3d1247 100644 (file)
@@ -764,8 +764,8 @@ AP_DECLARE(apr_status_t) ap_duplicate_listeners(server_rec *s, apr_pool_t *p,
 
     mpm_listen = apr_palloc(p, sizeof(ap_listen_rec*) * num_buckets);
     for (i = 0; i < num_buckets; i++) {
-        lr = ap_listeners;
         ap_listen_rec *last = NULL;
+        lr = ap_listeners;
         while (lr) {
             ap_listen_rec *duplr;
             char *hostname;