CVSROOT: /cvs Module name: src Changes by: [email protected] 2024/02/04 07:57:00
Modified files:
usr.sbin/vmd : vmm.c
Log message:
Remove dead code and fix null deref if vm is not found.
Return early if no vm is found in vmd(8)'s primary vm fork/exec
function, preventing null deref in the 'fail' section. Also remove
inner return from the parent routine to prevent unreachable code.
Found by smatch, reported by and ok jsg@.
