]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix crash in dnstap: Do not try to log TCP responses after timeout.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 8 Apr 2015 19:58:06 +0000 (19:58 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 8 Apr 2015 19:58:06 +0000 (19:58 +0000)
git-svn-id: file:///svn/unbound/trunk@3390 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
services/outside_network.c

index 20dc5ad1c815d7cecb3a085cec7bf1b5377b1987..8664b2172264e87c7579172de564b045edb967ac 100644 (file)
@@ -1,3 +1,6 @@
+8 April 2015: Wouter
+       - Fix crash in dnstap: Do not try to log TCP responses after timeout.
+
 7 April 2015: Wouter
        - Libunbound skips dos-line-endings from etc/hosts.
        - Unbound exits with a fatal error when the auto-trust-anchor-file
index dc3d2f404bdd682c6c5fbc9d126b305c3c391235..8d6760737ece029179d20bf672421c8696867dce 100644 (file)
@@ -1590,7 +1590,7 @@ serviced_tcp_callback(struct comm_point* c, void* arg, int error,
                infra_update_tcp_works(sq->outnet->infra, &sq->addr,
                        sq->addrlen, sq->zone, sq->zonelen);
 #ifdef USE_DNSTAP
-       if(sq->outnet->dtenv &&
+       if(error==NETEVENT_NOERROR && sq->outnet->dtenv &&
           (sq->outnet->dtenv->log_resolver_response_messages ||
            sq->outnet->dtenv->log_forwarder_response_messages))
                dt_msg_send_outside_response(sq->outnet->dtenv, &sq->addr,