diff --git a/lib/dns/resolver.c b/lib/dns/resolver.c index 0b421ca703..29852030cb 100644 --- a/lib/dns/resolver.c +++ b/lib/dns/resolver.c @@ -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);