2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-28 21:17:54 +00:00

set setok/sitbad

This commit is contained in:
Mark Andrews 2014-02-20 16:16:53 +11:00
parent 7adf0928b9
commit d17d32a7bf

View File

@ -7035,12 +7035,14 @@ process_opt(resquery_t *query, dns_rdataset_t *opt) {
compute_cc(query, cookie, sizeof(cookie));
if (optlen >= 8U &&
memcmp(cookie, sit, 8) == 0) {
query->fctx->rmessage->sitok = 1;
inc_stats(query->fctx->res,
dns_resstatscounter_sitok);
addrinfo = query->addrinfo;
dns_adb_setsit(query->fctx->adb,
addrinfo, sit, optlen);
}
} else
query->fctx->rmessage->sitbad = 1;
isc_buffer_forward(&optbuf, optlen);
inc_stats(query->fctx->res,
dns_resstatscounter_sitin);