summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2019-04-12 07:03:11 +0000
committerflorian <florian@openbsd.org>2019-04-12 07:03:11 +0000
commitb542a0d7348dc77947a3398fd7fdcfeadc6e05be (patch)
tree883900d0cfec2bc0aed4c3ee6bc8a8bbcda49bce
parentprint transceiver supported distances, ok deraadt (diff)
downloadwireguard-openbsd-b542a0d7348dc77947a3398fd7fdcfeadc6e05be.tar.xz
wireguard-openbsd-b542a0d7348dc77947a3398fd7fdcfeadc6e05be.zip
Unbreak listening for prefix changes.
Found the hard way by naddy OK deraadt, phessler
-rw-r--r--usr.sbin/rad/frontend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rad/frontend.c b/usr.sbin/rad/frontend.c
index dc1196f379d..b733bc837ef 100644
--- a/usr.sbin/rad/frontend.c
+++ b/usr.sbin/rad/frontend.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: frontend.c,v 1.27 2019/03/15 16:49:20 florian Exp $ */
+/* $OpenBSD: frontend.c,v 1.28 2019/04/12 07:03:11 florian Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
@@ -474,7 +474,7 @@ frontend_dispatch_main(int fd, short event, void *bula)
fatalx("%s: expected to receive imsg "
"routesocket fd but didn't receive any",
__func__);
- event_set(&ev_route, fd, EV_READ | EV_PERSIST,
+ event_set(&ev_route, routesock, EV_READ | EV_PERSIST,
route_receive, NULL);
break;
case IMSG_STARTUP: