summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/kroute.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-12-26 16:48:08 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-12-26 16:48:08 +0000
commit3c819e3182e49fcdf4bb61f4eb711fc0312c0d42 (patch)
tree909e30f6b1d97ef0ce40308b454577d6dd666639 /usr.sbin/bgpd/kroute.c
parent96b2b4524d5506a4dbafe845a5944e11739e6a2b (diff)
provide a real log_err
Diffstat (limited to 'usr.sbin/bgpd/kroute.c')
-rw-r--r--usr.sbin/bgpd/kroute.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/bgpd/kroute.c b/usr.sbin/bgpd/kroute.c
index 18dae13ff9d..ec11480aa3b 100644
--- a/usr.sbin/bgpd/kroute.c
+++ b/usr.sbin/bgpd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.29 2003/12/26 15:42:14 henning Exp $ */
+/* $OpenBSD: kroute.c,v 1.30 2003/12/26 16:48:07 henning Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -81,12 +81,12 @@ kroute_init(void)
{
int s, opt;
- if ((s = socket(AF_ROUTE, SOCK_RAW, 0)) < 0)
- fatal("route socket", errno);
+ if ((s = socket(AF_ROUTE, SOCK_RAW, 0)) == -1)
+ return (-1);
/* not intrested in my own messages */
if (setsockopt(s, SOL_SOCKET, SO_USELOOPBACK, &opt, sizeof(opt)) == -1)
- fatal("route setsockopt", errno);
+ return (-1);
pid = getpid();