"search for response in bucket %d: %s", bucket,
(resp == NULL ? "not found" : "found"));
- if (resp == NULL) {
- inc_stats(mgr, dns_resstatscounter_mismatch);
- free_buffer(disp, ev->region.base, ev->region.length);
- goto unlock;
- }
} else if (resp->id != id ||
!isc_sockaddr_equal(&ev->address, &resp->host)) {
dispatch_log(disp, LVL(90),
goto unlock;
}
+ if (resp == NULL) {
+ inc_stats(mgr, dns_resstatscounter_mismatch);
+ free_buffer(disp, ev->region.base, ev->region.length);
+ goto unlock;
+ }
+
/*
* Now that we have the original dispatch the query was sent
* from check that the address and port the response was