]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/resolve/resolved-util.c
resolved-util: NUL-terminate host label
authorRonan Pigott <ronan@rjp.ie>
Sat, 16 Dec 2023 19:45:07 +0000 (12:45 -0700)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 17 Dec 2023 07:56:43 +0000 (16:56 +0900)
commitf5de77fa081b10cf31f6feb3447e062ba578e0a9
tree05ee1bfca04f587aeb6c16f50e7b81551c5d4c58
parente6267e832bc865c5e73e9e48b6dba7d1646f8d2e
resolved-util: NUL-terminate host label

In case the host has a 63-byte hostname, we must have enough space for a
NUL terminator as well.
src/resolve/resolved-util.c