artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f508dbd
)
Explicitly initialize vmd_vm pointer with NULL before calling vm_register.
author
mbuhl
<mbuhl@openbsd.org>
Wed, 22 Feb 2023 10:04:45 +0000
(10:04 +0000)
committer
mbuhl
<mbuhl@openbsd.org>
Wed, 22 Feb 2023 10:04:45 +0000
(10:04 +0000)
Found by codechecker.
ok dv@
usr.sbin/vmd/config.c
patch
|
blob
|
history
diff --git
a/usr.sbin/vmd/config.c
b/usr.sbin/vmd/config.c
index
9745615
..
922e6cc
100644
(file)
--- a/
usr.sbin/vmd/config.c
+++ b/
usr.sbin/vmd/config.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: config.c,v 1.6
7 2023/01/28 14:40:53 dv Exp $
*/
+/* $OpenBSD: config.c,v 1.6
8 2023/02/22 10:04:45 mbuhl Exp $
*/
/*
* Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
@@
-547,7
+547,7
@@
int
config_getvm(struct privsep *ps, struct imsg *imsg)
{
struct vmop_create_params vmc;
- struct vmd_vm *vm;
+ struct vmd_vm *vm
= NULL
;
IMSG_SIZE_CHECK(imsg, &vmc);
memcpy(&vmc, imsg->data, sizeof(vmc));