Prevent null pointer deref is vm isn't found.
authordv <dv@openbsd.org>
Sun, 4 Feb 2024 14:56:45 +0000 (14:56 +0000)
committerdv <dv@openbsd.org>
Sun, 4 Feb 2024 14:56:45 +0000 (14:56 +0000)
commit25a75e1b64e888aa4dc233efdd7ac52a0b73e324
tree6a36ac2c8ea1063a5be0764b2e85020f6ba0b77c
parentf0a117866823fa4f5bc035e8451e8b20187ec6cd
Prevent null pointer deref is vm isn't found.

This area of code in vmd(8) is suspect, but the null dereference
is easily avoided.

Found by smatch, reported by and ok jsg@
usr.sbin/vmd/vmd.c