Tidy all_addr union, merge log and rcode fields.

This commit is contained in:
Simon Kelley
2018-12-31 23:28:24 +00:00
parent e7bfd556c0
commit bde46476ee
4 changed files with 6 additions and 10 deletions

View File

@@ -658,7 +658,7 @@ static size_t process_reply(struct dns_header *header, time_t now, struct server
if (rcode != NOERROR && rcode != NXDOMAIN)
{
struct all_addr a;
a.addr.rcode.rcode = rcode;
a.addr.log.rcode = rcode;
log_query(F_UPSTREAM | F_RCODE, "error", &a, NULL);
return resize_packet(header, n, pheader, plen);