summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/bgpd.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-12-26 16:54:11 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-12-26 16:54:11 +0000
commitc81c821f420f8a22f5e06d73349b08a5901993f2 (patch)
tree9dd453ef16dfb8d9ec3a0dd6f69fde0dbcb52631 /usr.sbin/bgpd/bgpd.c
parent3c819e3182e49fcdf4bb61f4eb711fc0312c0d42 (diff)
handle kroute_init failures nicer
Diffstat (limited to 'usr.sbin/bgpd/bgpd.c')
-rw-r--r--usr.sbin/bgpd/bgpd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/bgpd.c b/usr.sbin/bgpd/bgpd.c
index 7217b6b4b21..f45aafc6a61 100644
--- a/usr.sbin/bgpd/bgpd.c
+++ b/usr.sbin/bgpd/bgpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpd.c,v 1.34 2003/12/26 14:55:03 henning Exp $ */
+/* $OpenBSD: bgpd.c,v 1.35 2003/12/26 16:54:10 henning Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -193,7 +193,8 @@ main(int argc, char *argv[])
imsg_init(&ibuf_se, pipe_m2s[0]);
imsg_init(&ibuf_rde, pipe_m2r[0]);
- rfd = kroute_init();
+ if ((rfd = kroute_init()) == -1)
+ quit = 1;
while (quit == 0) {
pfd[PFD_PIPE_SESSION].fd = ibuf_se.sock;