- Fix crash in dnstap: Do not try to log TCP responses after timeout.

git-svn-id: file:///svn/unbound/trunk@3390 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2015-04-08 19:58:06 +00:00
parent 53008d7969
commit e0631733a6
2 changed files with 4 additions and 1 deletions

View 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 7 April 2015: Wouter
- Libunbound skips dos-line-endings from etc/hosts. - Libunbound skips dos-line-endings from etc/hosts.
- Unbound exits with a fatal error when the auto-trust-anchor-file - Unbound exits with a fatal error when the auto-trust-anchor-file

View 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, infra_update_tcp_works(sq->outnet->infra, &sq->addr,
sq->addrlen, sq->zone, sq->zonelen); sq->addrlen, sq->zone, sq->zonelen);
#ifdef USE_DNSTAP #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_resolver_response_messages ||
sq->outnet->dtenv->log_forwarder_response_messages)) sq->outnet->dtenv->log_forwarder_response_messages))
dt_msg_send_outside_response(sq->outnet->dtenv, &sq->addr, dt_msg_send_outside_response(sq->outnet->dtenv, &sq->addr,