summaryrefslogtreecommitdiff
path: root/llmnrd.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2017-02-28 10:19:38 +0100
committerTobias Klauser <tklauser@distanz.ch>2017-02-28 10:19:38 +0100
commit29deb4c762b2ba9dc7eb370b5a04611dad0d8525 (patch)
tree9d02eaad5d08ebfa2e54c1942c2f0655576bb989 /llmnrd.c
parentb7a77aa21b1fefea16993cd9b732f39a45cd6b80 (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 'llmnrd.c')
0 files changed, 0 insertions, 0 deletions