summaryrefslogtreecommitdiffstats
path: root/usr.sbin/vmd/vmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/vmd/vmd.c')
-rw-r--r--usr.sbin/vmd/vmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/vmd/vmd.c b/usr.sbin/vmd/vmd.c
index 22546e2b183..74a63e860f5 100644
--- a/usr.sbin/vmd/vmd.c
+++ b/usr.sbin/vmd/vmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmd.c,v 1.17 2015/12/05 20:33:51 reyk Exp $ */
+/* $OpenBSD: vmd.c,v 1.18 2015/12/06 01:16:22 reyk Exp $ */
/*
* Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
@@ -67,7 +67,7 @@ vmd_dispatch_control(int fd, struct privsep_proc *p, struct imsg *imsg)
memcpy(&vcp, imsg->data, sizeof(vcp));
res = config_getvm(ps, &vcp, -1, imsg->hdr.peerid);
if (res == -1) {
- res = EINVAL;
+ res = errno;
cmd = IMSG_VMDOP_START_VM_RESPONSE;
}
break;