From d17d32a7bf65c059eceb35a9b611f8a0dd406f61 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 20 Feb 2014 16:16:53 +1100 Subject: [PATCH] set setok/sitbad --- lib/dns/resolver.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);