From: wessels <> Date: Wed, 28 Aug 1996 03:49:40 +0000 (+0000) Subject: use _dns_ttl_ only if greater than -1 X-Git-Tag: SQUID_3_0_PRE1~5898 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=276a6d7c01ed656b850cb6dc5dfd156772809d16;p=thirdparty%2Fsquid.git use _dns_ttl_ only if greater than -1 --- diff --git a/ChangeLog b/ChangeLog index acbbcdcb40..2dc39e62cc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ - Fixed 'quick_abort' parsing bug - NULL terminate too-long URL strings in urlParse(). - Added shadow password patch from John Saunders + - Added _dns_ttl_ hack from bne@CareNet.hu to get real TTL values + from DNS queries. See Release-Notes-1.1.txt for more info. Changes to squid-1.1.alpha12: diff --git a/src/dnsserver.cc b/src/dnsserver.cc index 905f7a0b82..e3ffce877b 100644 --- a/src/dnsserver.cc +++ b/src/dnsserver.cc @@ -1,6 +1,6 @@ /* - * $Id: dnsserver.cc,v 1.14 1996/08/27 20:10:51 wessels Exp $ + * $Id: dnsserver.cc,v 1.15 1996/08/27 21:49:42 wessels Exp $ * * DEBUG: section 0 DNS Resolver * AUTHOR: Harvest Derived @@ -443,7 +443,8 @@ int main(argc, argv) /* DNS TTL handling - bne@CareNet.hu * for first try it's a dirty hack, by hacking getanswer * to place th e ttl in a global variable */ - printf("$ttl %d\n", _dns_ttl_); + if (_dns_ttl_ > -1) + printf("$ttl %d\n", _dns_ttl_); #endif printf("$end\n");