summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2019-04-12 07:03:12 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2019-04-12 07:03:12 +0000
commit851575de5faadf761777c3901776baf1b6d9548b (patch)
tree2a2d3ccf6d5a07e6296d67b03a6b1813c5f9ec7e /usr.sbin
parent4b44506de8521788d78245a9b9de27b87a0b3812 (diff)
Unbreak listening for prefix changes.
Found the hard way by naddy OK deraadt, phessler
Diffstat (limited to 'usr.sbin')
-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: