]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix compile errors after res_init polish
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 20 May 2009 09:01:21 +0000 (21:01 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 20 May 2009 09:01:21 +0000 (21:01 +1200)
src/dnsserver.cc

index 8a03b1a8fd131dd2066af21d8907b84de06b4917..eff9b728db2a2781666a3f046c69dfea3c542fd6 100644 (file)
@@ -427,7 +427,7 @@ squid_res_setservers(int reset)
     } else if ( ipa.IsIPv4() ) {
         if (_SQUID_RES_NSADDR_COUNT == MAXNS) {
             fprintf(stderr, "Too many -s options, only %d are allowed\n", MAXNS);
-            break;
+            return;
         }
         _SQUID_RES_NSADDR_LIST[_SQUID_RES_NSADDR_COUNT] = _SQUID_RES_NSADDR_LIST[0];
         ipa.GetInAddr(_SQUID_RES_NSADDR_LIST[_SQUID_RES_NSADDR_COUNT++].sin_addr);
@@ -436,7 +436,7 @@ squid_res_setservers(int reset)
          /* because things NEVER seem to resolve in tests without _res.nscount being a total. */
         if (_SQUID_RES_NSADDR_COUNT == MAXNS) {
             fprintf(stderr, "Too many -s options, only %d are allowed\n", MAXNS);
-            break;
+            return;
         }
         _SQUID_RES_NSADDR_COUNT++;