summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2015-10-19 09:32:52 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2015-10-19 09:32:52 +0000
commitbcbc758d225a3340ca0e846ba37d11e5a294ede4 (patch)
treea5c1d2937d4d4fbd3a836b5ff602891b253620b6 /usr.sbin
parentc171ad782a7a9e9992e9a589990eb79fbeef91ae (diff)
Fix control_imsg_forward() by changing imsg_compose() to
imsg_compose_event(). This was done by pyr@'s in relayd/control.c -r1.32 (2009/06/05, ok eric@) but somehow didn't slip into other daemons that imported control.c.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/snmpd/control.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/snmpd/control.c b/usr.sbin/snmpd/control.c
index 56233faaa73..e1cece2cf69 100644
--- a/usr.sbin/snmpd/control.c
+++ b/usr.sbin/snmpd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.32 2015/10/19 09:17:23 reyk Exp $ */
+/* $OpenBSD: control.c,v 1.33 2015/10/19 09:32:51 reyk Exp $ */
/*
* Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>
@@ -667,7 +667,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);
}