summaryrefslogtreecommitdiff
path: root/usr.sbin/switchd/switch.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/switchd/switch.c')
-rw-r--r--usr.sbin/switchd/switch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/switchd/switch.c b/usr.sbin/switchd/switch.c
index 26efb78736a..285add7bacc 100644
--- a/usr.sbin/switchd/switch.c
+++ b/usr.sbin/switchd/switch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: switch.c,v 1.2 2016/07/20 20:07:02 reyk Exp $ */
+/* $OpenBSD: switch.c,v 1.3 2016/09/18 13:17:40 rzalamena Exp $ */
/*
* Copyright (c) 2013-2016 Reyk Floeter <reyk@openbsd.org>
@@ -46,8 +46,8 @@ switch_init(struct switchd *sc)
int
switch_dispatch_control(int fd, struct privsep_proc *p, struct imsg *imsg)
{
- struct switchd *sc = p->p_env;
struct privsep *ps = p->p_ps;
+ struct switchd *sc = ps->ps_env;
struct switch_control *sw;
struct macaddr *mac;
struct iovec iov[2];