Skip to content

Commit

Permalink
Merge pull request #242 from darconeous/pull-request/resolv-bad-nsec-fix
Browse files Browse the repository at this point in the history
resolv: Fix for bad NSEC record on announce
  • Loading branch information
darconeous committed May 19, 2013
2 parents 9f0de7d + d0b99cc commit 382308e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/net/resolv.c
Expand Up @@ -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;
Expand Down

0 comments on commit 382308e

Please sign in to comment.