From d0f06aea343d3243d5c169eb422d817cb2d84a02 Mon Sep 17 00:00:00 2001 From: Reyk Floeter Date: Wed, 22 Dec 2010 16:37:53 +0000 Subject: Fix a little control socket bug, as discussed with mikeb@ --- sbin/iked/control.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sbin') diff --git a/sbin/iked/control.c b/sbin/iked/control.c index 79c94d2a302..3ef1023d945 100644 --- a/sbin/iked/control.c +++ b/sbin/iked/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.4 2010/12/21 13:24:11 mikeb Exp $ */ +/* $OpenBSD: control.c,v 1.5 2010/12/22 16:37:52 reyk Exp $ */ /* $vantronix: control.c,v 1.4 2010/05/14 07:35:52 reyk Exp $ */ /* @@ -165,8 +165,9 @@ control_accept(int listenfd, short event, void *arg) imsg_init(&c->iev.ibuf, connfd); c->iev.handler = control_dispatch_imsg; c->iev.events = EV_READ; + c->iev.data = env; event_set(&c->iev.ev, c->iev.ibuf.fd, c->iev.events, - c->iev.handler, env); + c->iev.handler, c->iev.data); event_add(&c->iev.ev, NULL); TAILQ_INSERT_TAIL(&ctl_conns, c, entry); -- cgit v1.2.3