summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreyk <reyk@openbsd.org>2015-10-19 11:27:35 +0000
committerreyk <reyk@openbsd.org>2015-10-19 11:27:35 +0000
commit0e18bff87fdcaf90f47abd0fdb04e2079a362009 (patch)
tree6cf3549141e74a1cf1b855b4c9e6bb1090731430
parentRemove the ikev1 stub - Since I started iked, it has an empty privsep (diff)
downloadwireguard-openbsd-0e18bff87fdcaf90f47abd0fdb04e2079a362009.tar.xz
wireguard-openbsd-0e18bff87fdcaf90f47abd0fdb04e2079a362009.zip
Fix control_imsg_forward() by changing imsg_compose() to
imsg_compose_event(). This was done by pyr@ in relayd/control.c -r1.32 (2009/06/05, ok eric@) but somehow didn't slip into other daemons that imported control.c.
-rw-r--r--sbin/iked/control.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/iked/control.c b/sbin/iked/control.c
index 484203d99f7..267f6e5967d 100644
--- a/sbin/iked/control.c
+++ b/sbin/iked/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.17 2015/10/19 11:25:35 reyk Exp $ */
+/* $OpenBSD: control.c,v 1.18 2015/10/19 11:27:35 reyk Exp $ */
/*
* Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>
@@ -311,7 +311,7 @@ control_imsg_forward(struct imsg *imsg)
TAILQ_FOREACH(c, &ctl_conns, entry)
if (c->flags & CTL_CONN_NOTIFY)
- imsg_compose(&c->iev.ibuf, imsg->hdr.type,
+ imsg_compose_event(&c->iev, imsg->hdr.type,
0, imsg->hdr.pid, -1, imsg->data,
imsg->hdr.len - IMSG_HEADER_SIZE);
}