mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-02 15:45:25 +00:00
INSIST(response);
This commit is contained in:
@@ -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 */
|
/*! \file */
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
@@ -1018,8 +1018,10 @@ dns_tsig_sign(dns_message_t *msg) {
|
|||||||
}
|
}
|
||||||
/* Digest the timesigned and fudge */
|
/* Digest the timesigned and fudge */
|
||||||
isc_buffer_clear(&databuf);
|
isc_buffer_clear(&databuf);
|
||||||
if (tsig.error == dns_tsigerror_badtime)
|
if (tsig.error == dns_tsigerror_badtime) {
|
||||||
|
INSIST(response);
|
||||||
tsig.timesigned = querytsig.timesigned;
|
tsig.timesigned = querytsig.timesigned;
|
||||||
|
}
|
||||||
isc_buffer_putuint48(&databuf, tsig.timesigned);
|
isc_buffer_putuint48(&databuf, tsig.timesigned);
|
||||||
isc_buffer_putuint16(&databuf, tsig.fudge);
|
isc_buffer_putuint16(&databuf, tsig.fudge);
|
||||||
isc_buffer_usedregion(&databuf, &r);
|
isc_buffer_usedregion(&databuf, &r);
|
||||||
|
Reference in New Issue
Block a user