mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-02-16 17:18:51 -05:00
Fix use after free.
This commit is contained in:
parent
9ea58b5bc0
commit
e25f80799a
1 changed files with 4 additions and 1 deletions
|
|
@ -760,13 +760,16 @@ use_free_buffer(struct outside_network* outnet)
|
|||
waiting_tcp_callback(w, NULL, NETEVENT_CLOSED,
|
||||
NULL);
|
||||
waiting_tcp_delete(w);
|
||||
#ifdef USE_DNSTAP
|
||||
w = NULL;
|
||||
#endif
|
||||
}
|
||||
#ifdef USE_DNSTAP
|
||||
pend_tcp = pend;
|
||||
#endif
|
||||
}
|
||||
#ifdef USE_DNSTAP
|
||||
if(outnet->dtenv && pend_tcp && w->sq &&
|
||||
if(outnet->dtenv && pend_tcp && w && w->sq &&
|
||||
(outnet->dtenv->log_resolver_query_messages ||
|
||||
outnet->dtenv->log_forwarder_query_messages)) {
|
||||
sldns_buffer tmp;
|
||||
|
|
|
|||
Loading…
Reference in a new issue