Commit d17d32a7 authored by Mark Andrews's avatar Mark Andrews
Browse files

set setok/sitbad

parent 7adf0928
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment