summaryrefslogtreecommitdiff
path: root/debian/llmnrd.service
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 /debian/llmnrd.service
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 'debian/llmnrd.service')
0 files changed, 0 insertions, 0 deletions