Merge pull request #208 from NLnetLabs/bugfix/dnstap-client-response-on-stateful-transports

Fix uncached CLIENT_RESPONSE'es on stateful transports
This commit is contained in:
Wouter Wijngaards 2020-03-30 14:54:31 +02:00 committed by GitHub
commit 5cb93eb7e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3157,7 +3157,10 @@ comm_point_send_reply(struct comm_reply *repinfo)
if(repinfo->c->tcp_parent->dtenv != NULL &&
repinfo->c->tcp_parent->dtenv->log_client_response_messages)
dt_msg_send_client_response(repinfo->c->tcp_parent->dtenv,
&repinfo->addr, repinfo->c->type, repinfo->c->buffer);
&repinfo->addr, repinfo->c->type,
( repinfo->c->tcp_req_info
? repinfo->c->tcp_req_info->spool_buffer
: repinfo->c->buffer ));
#endif
if(repinfo->c->tcp_req_info) {
tcp_req_info_send_reply(repinfo->c->tcp_req_info);