-5386. [cleanup] Address Coverity warnings in keymgr.c [GL #1737]
+5388. [func] Reject AXFR streams where the message id is not
+ consistent. [GL #1674]
+
+5387. [placeholder]
+5386. [cleanup] Address Coverity warnings in keymgr.c [GL #1737]
5385. [func] Make ISC rwlock implementation the default again.
[GL #1753]
dns_name_t name; /*%< Name of zone to transfer */
dns_rdataclass_t rdclass;
- bool checkid;
dns_messageid_t id;
/*%
xfr->ixfr.request_serial, xfr->end_serial);
FAIL(DNS_R_UPTODATE);
}
- if (xfr->reqtype == dns_rdatatype_axfr) {
- xfr->checkid = false;
- }
xfr->state = XFRST_FIRSTDATA;
break;
dns_name_init(&xfr->name, NULL);
xfr->rdclass = rdclass;
- xfr->checkid = true;
xfr->id = (dns_messageid_t)isc_random16();
xfr->reqtype = reqtype;
xfr->dscp = dscp;
&xfr->ixfr.request_serial));
}
- xfr->checkid = true;
xfr->id++;
xfr->nmsg = 0;
xfr->nrecs = 0;
if (result != ISC_R_SUCCESS || msg->rcode != dns_rcode_noerror ||
msg->opcode != dns_opcode_query || msg->rdclass != xfr->rdclass ||
- (xfr->checkid && msg->id != xfr->id))
+ msg->id != xfr->id)
{
if (result == ISC_R_SUCCESS && msg->rcode != dns_rcode_noerror)
{