]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
stream reuse, fix bad id in reply errors.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 10 Jul 2020 13:13:16 +0000 (15:13 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 10 Jul 2020 13:13:16 +0000 (15:13 +0200)
services/outside_network.c

index 0060d73596e25be3d8177baba805009b2f0b7a12..af69860b5fb08e6bdbc67b4b026e9c7e7af75a81 100644 (file)
@@ -935,7 +935,7 @@ outnet_tcp_cb(struct comm_point* c, void* arg, int error,
                        w = reuse_tcp_by_id_find(&pend->reuse, id);
                }
        }
-       if(!w) {
+       if(error == NETEVENT_NOERROR && !w) {
                /* no struct waiting found in tree, no reply to call */
                log_addr(VERB_QUERY, "outnettcp: bad ID in reply, from:",
                        &pend->reuse.addr, pend->reuse.addrlen);