]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/port.c: getportent(): Make sure there are at least 2 ':' in the line
authorAlejandro Colomar <alx@kernel.org>
Tue, 2 Jul 2024 12:43:26 +0000 (14:43 +0200)
committerSerge Hallyn <serge@hallyn.com>
Sat, 6 Jul 2024 12:44:02 +0000 (07:44 -0500)
commitc3f97e251ef13f24538e4e52ffe4cba01ea0e840
treeec42ddf48041654761dfba945e1aec600f0eb093
parentf1f82c21054bfec3d5e1cf7918eb0b42e596cb20
lib/port.c: getportent(): Make sure there are at least 2 ':' in the line

Otherwise, the line is invalidly formatted, and we ignore it.

Closes: <https://github.com/shadow-maint/shadow/issues/1036>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/port.c