Skip to content

Commit 0076736

Browse files
committed
- Fix for dnstap with dnscrypt and dnstap without dnsoverquic.
1 parent f8e45ed commit 0076736

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

doc/Changelog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
- Fix for dnsoverquic and dnstap to use the correct dnstap
33
environment.
44

5+
16 October 2024: Wouter
6+
- Fix for dnstap with dnscrypt and dnstap without dnsoverquic.
7+
58
14 October 2024: Wouter
69
- Fix to display warning if quic-port is set but dnsoverquic is not
710
enabled when compiled.

util/netevent.c

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6676,12 +6676,19 @@ comm_point_send_reply(struct comm_reply *repinfo)
66766676
#endif
66776677
} else {
66786678
#ifdef USE_DNSTAP
6679-
struct dt_env* dtenv = repinfo->c->doq_socket
6680-
?repinfo->c->dtenv
6681-
:repinfo->c->tcp_parent->dtenv;
6679+
struct dt_env* dtenv =
6680+
#ifdef HAVE_NGTCP2
6681+
repinfo->c->doq_socket
6682+
?repinfo->c->dtenv:
6683+
#endif
6684+
repinfo->c->tcp_parent->dtenv;
66826685
struct sldns_buffer* dtbuffer = repinfo->c->tcp_req_info
66836686
?repinfo->c->tcp_req_info->spool_buffer
66846687
:repinfo->c->buffer;
6688+
#ifdef USE_DNSCRYPT
6689+
if(repinfo->c->dnscrypt && repinfo->is_dnscrypted)
6690+
dtbuffer = repinfo->c->buffer;
6691+
#endif
66856692
/*
66866693
* sending src (client)/dst (local service) addresses over
66876694
* DNSTAP from other callbacks

0 commit comments

Comments
 (0)