From 1fad5aed2c5535020408f5d5491af72b2a9c6651 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Wed, 20 May 2009 21:01:21 +1200 Subject: [PATCH] Fix compile errors after res_init polish --- src/dnsserver.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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++; -- 2.47.3