diff options
Diffstat (limited to 'usr.sbin/eigrpd/eigrpd.c')
-rw-r--r-- | usr.sbin/eigrpd/eigrpd.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/eigrpd/eigrpd.c b/usr.sbin/eigrpd/eigrpd.c index 6e5d5ddf6da..8fb673bc242 100644 --- a/usr.sbin/eigrpd/eigrpd.c +++ b/usr.sbin/eigrpd/eigrpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: eigrpd.c,v 1.21 2016/09/02 17:59:58 benno Exp $ */ +/* $OpenBSD: eigrpd.c,v 1.22 2018/08/02 06:28:35 mestre Exp $ */ /* * Copyright (c) 2015 Renato Westphal <renato@openbsd.org> @@ -36,6 +36,7 @@ #include "eigrpe.h" #include "rde.h" #include "log.h" +#include "control.h" static void main_sig_handler(int, short, void *); static __dead void usage(void); @@ -167,6 +168,8 @@ main(int argc, char *argv[]) else if (eflag) eigrpe(debug, global.cmd_opts & EIGRPD_OPT_VERBOSE, sockname); + global.csock = sockname; + mib[0] = CTL_NET; mib[1] = PF_INET; mib[2] = IPPROTO_IP; @@ -268,7 +271,7 @@ main(int argc, char *argv[]) eigrpd_conf->rdomain) == -1) fatalx("kr_init failed"); - if (pledge("inet rpath stdio sendfd", NULL) == -1) + if (pledge("inet rpath cpath stdio sendfd", NULL) == -1) fatal("pledge"); event_dispatch(); @@ -290,6 +293,7 @@ eigrpd_shutdown(void) msgbuf_clear(&iev_rde->ibuf.w); close(iev_rde->ibuf.fd); + control_cleanup(global.csock); kr_shutdown(); config_clear(eigrpd_conf); |