mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Merge pull request #242 from darconeous/pull-request/resolv-bad-nsec-fix
resolv: Fix for bad NSEC record on announce
This commit is contained in:
commit
382308e6bf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user