summaryrefslogtreecommitdiff
path: root/llmnr.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-08-02 16:45:07 +0200
committerTobias Klauser <tklauser@distanz.ch>2016-08-02 16:45:07 +0200
commit5939d09f16547ab935d8e3699688ed1817471da5 (patch)
tree5c63ef73d5beb3818d108f20f5261b2dce5c1b2c /llmnr.c
parentde09cf982772733945dd853bc9a54b7b275af705 (diff)
llmnrd: Use MAXHOSTNAMELEN for hostname buffer and zero-terminate string
Use MAXHOSTNAMELEN defined in sys/param.h to determine the size of the hostname buffer to allocate. Also make sure the string is properly zero-terminated in all cases, as in some cases it might be undefined whether a truncated string is properly terminated. Note: Also remove a TODO comment, as watching for hostname changes at runtime is outside the scope of llmnrd (also, avahi behaves the same). Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'llmnr.c')
0 files changed, 0 insertions, 0 deletions
ls/perf/MANIFEST?h=nds-private-remove&id=ad430729ae00dd63f7dcadbeb638e589bc03b5a3'>tools/perf/MANIFEST2
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/perf/MANIFEST b/tools/perf/MANIFEST