libfstools: avoid segfault in find_mount_point
authorStijn Tintel <stijn@linux-ipv6.be>
Tue, 21 Dec 2021 17:37:03 +0000 (19:37 +0200)
committerStijn Tintel <stijn@linux-ipv6.be>
Sat, 5 Feb 2022 16:01:25 +0000 (18:01 +0200)
commit922f1b3c091dbe12af4ba12a76ba8563418b688c
tree249872b39405ff97496bc4054c4786d6a451f8cf
parent649cd3ff93418c94e6f3c316602319fc3f12cafa
libfstools: avoid segfault in find_mount_point

If block is NULL, find_mount_point will segfault when comparing it
against the device name found in /proc/self/mountinfo. Avoid this by
checking if block is NULL.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
libfstools/find.c