From 849283b0d30a583d90f98bddc132cf5c24e80fdb Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Mon, 29 Aug 2011 04:04:05 +0000 Subject: [PATCH] INSIST(response); --- lib/dns/tsig.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/dns/tsig.c b/lib/dns/tsig.c index 7573e2e023..fd2069bbea 100644 --- a/lib/dns/tsig.c +++ b/lib/dns/tsig.c @@ -16,7 +16,7 @@ */ /* - * $Id: tsig.c,v 1.147.10.2 2011/08/25 06:22:28 marka Exp $ + * $Id: tsig.c,v 1.147.10.3 2011/08/29 04:04:05 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);