From d0b99cc3cccc81b5fd662b7e47d017364bef6a1d Mon Sep 17 00:00:00 2001 From: Robert Quattlebaum Date: Sun, 19 May 2013 16:09:50 -0700 Subject: [PATCH] resolv: Fix for bad NSEC record on announce --- core/net/resolv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/net/resolv.c b/core/net/resolv.c index f90124e14..7b6d3401f 100644 --- a/core/net/resolv.c +++ b/core/net/resolv.c @@ -635,6 +635,8 @@ mdns_prep_host_announce_packet(void) memcpy((void *)queryptr, (void *)&nsec_record, sizeof(nsec_record)); + queryptr += sizeof(nsec_record); + /* This platform might be picky about alignment. To avoid the possibility * of doing an unaligned write, we are going to do this manually. */ ((uint8_t*)&hdr->numanswers)[1] = total_answers;