From: Mark Andrews Date: Mon, 29 Aug 2011 04:02:54 +0000 (+0000) Subject: INSIST(response); X-Git-Tag: v9.9.0a2~1^2~96 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=106561b398eb5de295abcd402f94a88ad72ac8c0;p=thirdparty%2Fbind9.git INSIST(response); --- diff --git a/lib/dns/tsig.c b/lib/dns/tsig.c index fe881f59da3..38879efee41 100644 --- a/lib/dns/tsig.c +++ b/lib/dns/tsig.c @@ -16,7 +16,7 @@ */ /* - * $Id: tsig.c,v 1.149 2011/08/25 06:20:07 marka Exp $ + * $Id: tsig.c,v 1.150 2011/08/29 04:02:54 marka Exp $ */ /*! \file */ #include @@ -1018,8 +1018,10 @@ dns_tsig_sign(dns_message_t *msg) { } /* Digest the timesigned and fudge */ isc_buffer_clear(&databuf); - if (tsig.error == dns_tsigerror_badtime) + if (tsig.error == dns_tsigerror_badtime) { + INSIST(response); tsig.timesigned = querytsig.timesigned; + } isc_buffer_putuint48(&databuf, tsig.timesigned); isc_buffer_putuint16(&databuf, tsig.fudge); isc_buffer_usedregion(&databuf, &r);