]> git.ipfire.org Git - people/ms/dnsmasq.git/commitdiff
Check all servers loopiness, when any subset is changed.
authorSimon Kelley <simon@thekelleys.org.uk>
Tue, 29 Jul 2014 15:52:00 +0000 (16:52 +0100)
committerSimon Kelley <simon@thekelleys.org.uk>
Tue, 29 Jul 2014 15:52:00 +0000 (16:52 +0100)
src/network.c

index 9c46b8a0d137c16d2fcf24d59832a6ff2ea7eb28..5067007c5cbc04349a0c3377f52a8e662cbba8ee 100644 (file)
@@ -1297,14 +1297,14 @@ void mark_servers(int flag)
 
   /* mark everything with argument flag */
   for (serv = daemon->servers; serv; serv = serv->next)
-    if (serv->flags & flag)
-      {
+    {
+      if (serv->flags & flag)
        serv->flags |= SERV_MARK;
 #ifdef HAVE_LOOP
-       /* Give looped servers another chance */
-       serv->flags &= ~SERV_LOOP;
+      /* Give looped servers another chance */
+      serv->flags &= ~SERV_LOOP;
 #endif
-      }
+    }
 }
 
 void cleanup_servers(void)