mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
set setok/sitbad
This commit is contained in:
parent
7adf0928b9
commit
d17d32a7bf
@ -7035,12 +7035,14 @@ process_opt(resquery_t *query, dns_rdataset_t *opt) {
|
|||||||
compute_cc(query, cookie, sizeof(cookie));
|
compute_cc(query, cookie, sizeof(cookie));
|
||||||
if (optlen >= 8U &&
|
if (optlen >= 8U &&
|
||||||
memcmp(cookie, sit, 8) == 0) {
|
memcmp(cookie, sit, 8) == 0) {
|
||||||
|
query->fctx->rmessage->sitok = 1;
|
||||||
inc_stats(query->fctx->res,
|
inc_stats(query->fctx->res,
|
||||||
dns_resstatscounter_sitok);
|
dns_resstatscounter_sitok);
|
||||||
addrinfo = query->addrinfo;
|
addrinfo = query->addrinfo;
|
||||||
dns_adb_setsit(query->fctx->adb,
|
dns_adb_setsit(query->fctx->adb,
|
||||||
addrinfo, sit, optlen);
|
addrinfo, sit, optlen);
|
||||||
}
|
} else
|
||||||
|
query->fctx->rmessage->sitbad = 1;
|
||||||
isc_buffer_forward(&optbuf, optlen);
|
isc_buffer_forward(&optbuf, optlen);
|
||||||
inc_stats(query->fctx->res,
|
inc_stats(query->fctx->res,
|
||||||
dns_resstatscounter_sitin);
|
dns_resstatscounter_sitin);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user