]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
set setok/sitbad
authorMark Andrews <marka@isc.org>
Thu, 20 Feb 2014 05:16:53 +0000 (16:16 +1100)
committerMark Andrews <marka@isc.org>
Thu, 20 Feb 2014 05:16:53 +0000 (16:16 +1100)
lib/dns/resolver.c

index 0b421ca703761a4d6f6bbabc46db8e2d0e5bb8cb..29852030cbe62bbae731bf7fd236117f2676c339 100644 (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);