validator. CNAME to a NXDOMAIN response was collated into a response
with both a CNAME and the NXDOMAIN rcode. Added a test that the
rcode is changed to NOERROR (because of the CNAME).
+ - timeout on tcp does not lead to spurious leakage detect.
31 August 2007: Wouter
- can read bind trusted-keys { ... }; files, in a compatibility mode.
if(outnet->tcp_wait_last == w)
outnet->tcp_wait_last = NULL;
if(!outnet_tcp_take_into_use(w, w->pkt, w->pkt_len)) {
- (void)(*w->cb)(NULL, w->cb_arg, NETEVENT_CLOSED, NULL);
+ comm_point_callback_t* cb = w->cb;
+ void* cb_arg = w->cb_arg;
waiting_tcp_delete(w);
+ (void)(*cb)(NULL, cb_arg, NETEVENT_CLOSED, NULL);
}
}
}
{
struct waiting_tcp* w = (struct waiting_tcp*)arg;
struct outside_network* outnet = w->outnet;
+ comm_point_callback_t* cb;
+ void* cb_arg;
if(w->pkt) {
/* it is on the waiting list */
struct waiting_tcp* p=outnet->tcp_wait_first, *prev=NULL;
pend->next_free = outnet->tcp_free;
outnet->tcp_free = pend;
}
- (void)(*w->cb)(NULL, w->cb_arg, NETEVENT_TIMEOUT, NULL);
+ cb = w->cb;
+ cb_arg = w->cb_arg;
waiting_tcp_delete(w);
+ (void)(*cb)(NULL, cb_arg, NETEVENT_TIMEOUT, NULL);
use_free_buffer(outnet);
}