mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-02-03 20:29:28 -05:00
outnet_tcp_cb: add assertion and return when write packets done is handled.
This commit is contained in:
parent
cbcbd5fa07
commit
dfb6d32189
1 changed files with 2 additions and 0 deletions
|
|
@ -867,6 +867,7 @@ outnet_tcp_cb(struct comm_point* c, void* arg, int error,
|
|||
pend->c->tcp_write_pkt = NULL;
|
||||
pend->c->tcp_write_pkt_len = 0;
|
||||
/* the pend.query is already in tree_by_id */
|
||||
log_assert(pend->query->id_node.key);
|
||||
pend->query = NULL;
|
||||
/* setup to write next packet or setup read timeout */
|
||||
if(pend->reuse.write_wait_first) {
|
||||
|
|
@ -876,6 +877,7 @@ outnet_tcp_cb(struct comm_point* c, void* arg, int error,
|
|||
} else {
|
||||
reuse_tcp_setup_readtimeout(pend);
|
||||
}
|
||||
return 0;
|
||||
} else if(error != NETEVENT_NOERROR) {
|
||||
verbose(VERB_QUERY, "outnettcp got tcp error %d", error);
|
||||
/* pass error below and exit */
|
||||
|
|
|
|||
Loading…
Reference in a new issue