Properly deal with unaligned addresses in DHCPv6 packets.

Thanks to Vladislav Grishenko for spotting this.
This commit is contained in:
Simon Kelley
2018-08-21 22:06:36 +01:00
parent cbfbd173c4
commit 97f876b64c
2 changed files with 61 additions and 43 deletions

View File

@@ -1381,7 +1381,7 @@ size_t answer_request(struct dns_header *header, char *limit, size_t qlen,
if (add_resource_record(header, limit, &trunc, nameoffset, &ansp,
daemon->local_ttl, NULL,
t->class, C_IN, "t", t->len, t->txt))
anscount ++;
anscount++;
}
}