summaryrefslogtreecommitdiff
path: root/usr.bin/ul/ul.c
diff options
context:
space:
mode:
authorDave Voutila <dv@cvs.openbsd.org>2024-02-04 14:57:01 +0000
committerDave Voutila <dv@cvs.openbsd.org>2024-02-04 14:57:01 +0000
commitae991a7a41d751628e81fa1b9cc1a0e6cff7847c (patch)
tree6b91261eb5ff60d5eec53a32332b749e8bca3c0f /usr.bin/ul/ul.c
parent9d0e7ef7456008591f1441a0abec09c0d6e5db2a (diff)
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@.
Diffstat (limited to 'usr.bin/ul/ul.c')
0 files changed, 0 insertions, 0 deletions