diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2017-02-28 10:19:38 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2017-02-28 10:19:38 +0100 |
commit | 29deb4c762b2ba9dc7eb370b5a04611dad0d8525 (patch) | |
tree | 9d02eaad5d08ebfa2e54c1942c2f0655576bb989 /socket.h | |
parent | b7a77aa21b1fefea16993cd9b732f39a45cd6b80 (diff) |
llmnr-query: Fix missing NULL byte
If the domain name in the response is <len> <octets> <00>, the code
copies 'len' octets to name[], but does not add a terminating NULL
character. The same may happen in the "compression" case.
Fix this by adding a NULL byte in both cases.
Patch constributed by @tbetker.
Fixes #22
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'socket.h')
0 files changed, 0 insertions, 0 deletions