From: W.C.A. Wijngaards Date: Mon, 23 Nov 2020 08:37:26 +0000 (+0100) Subject: stream reuse, fix review comments. X-Git-Tag: release-1.13.0rc1~5^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f4c79ab95a0f9cd7683b316a114507988e46066;p=thirdparty%2Funbound.git stream reuse, fix review comments. --- diff --git a/services/outside_network.c b/services/outside_network.c index a949846a2..a6d787e6d 100644 --- a/services/outside_network.c +++ b/services/outside_network.c @@ -790,7 +790,7 @@ reuse_move_writewait_away(struct outside_network* outnet, pend->c->tcp_write_pkt_len == pend->query->pkt_len) { /* since the current query is not written, it can also * move to a free buffer */ - if(verbosity >= 5 && pend->query->pkt_len > 12+2+2 && + if(verbosity >= VERB_CLIENT && pend->query->pkt_len > 12+2+2 && LDNS_QDCOUNT(pend->query->pkt) > 0 && dname_valid(pend->query->pkt+12, pend->query->pkt_len-12)) { char buf[LDNS_MAX_DOMAINLEN+1]; @@ -815,7 +815,7 @@ reuse_move_writewait_away(struct outside_network* outnet, outnet_add_tcp_waiting(outnet, w); } while((w = reuse_write_wait_pop(&pend->reuse)) != NULL) { - if(verbosity >= 5 && w->pkt_len > 12+2+2 && + if(verbosity >= VERB_CLIENT && w->pkt_len > 12+2+2 && LDNS_QDCOUNT(w->pkt) > 0 && dname_valid(w->pkt+12, w->pkt_len-12)) { char buf[LDNS_MAX_DOMAINLEN+1];