From: Amos Jeffries Date: Wed, 20 May 2009 09:01:21 +0000 (+1200) Subject: Fix compile errors after res_init polish X-Git-Tag: SQUID_3_2_0_1~1005 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1fad5aed2c5535020408f5d5491af72b2a9c6651;p=thirdparty%2Fsquid.git Fix compile errors after res_init polish --- diff --git a/src/dnsserver.cc b/src/dnsserver.cc index 8a03b1a8fd..eff9b728db 100644 --- a/src/dnsserver.cc +++ b/src/dnsserver.cc @@ -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++;