Extralog tweaks to get log-id right in a couple of odd cases.

This commit is contained in:
Simon Kelley
2024-11-03 23:40:43 +00:00
parent 467fbd1086
commit 498794ad85
2 changed files with 5 additions and 4 deletions

View File

@@ -1447,9 +1447,6 @@ void return_reply(time_t now, struct frec *forward, struct dns_header *header, s
if (src->fd != -1)
{
#ifdef HAVE_DUMPFILE
dump_packet_udp(DUMP_REPLY, daemon->packet, (size_t)nn, NULL, &src->source, src->fd);
#endif
send_from(src->fd, option_bool(OPT_NOWILD) || option_bool (OPT_CLEVERBIND), daemon->packet, nn,
&src->source, &src->dest, src->iface);
@@ -1459,6 +1456,10 @@ void return_reply(time_t now, struct frec *forward, struct dns_header *header, s
daemon->log_source_addr = &src->source;
log_query(F_UPSTREAM, "query", NULL, "duplicate", 0);
}
#ifdef HAVE_DUMPFILE
dump_packet_udp(DUMP_REPLY, daemon->packet, (size_t)nn, NULL, &src->source, src->fd);
#endif
}
}
}