tklauser / llmnrd

Link-Local Multicast Resolution (LLMNR) Daemon for Linux
GNU General Public License v2.0
44 stars 20 forks source link

Fix misaligned memory access #11

Closed dvl-mevertz closed 8 years ago

dvl-mevertz commented 8 years ago

This changes fixes misaligned memory access. Without the patch I get several "Misaligend access trap for user program 'llmnrd'" messages on my platform if the system has odd hostname length.

tklauser commented 8 years ago

Applied with minor modifications (usage of sizeof in qtype/qclass extraction) as 9bec6fb916f65cec99e981a6733984a8a17f30d3

Thanks a lot!