diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-12-25 02:49:06 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-12-25 02:49:06 +0000 |
commit | 7f2d1df6d971c82a7cec7a14bdd64ed128ad50bd (patch) | |
tree | 8a89585b5dcceca475f733bafb6067c45fae5700 /usr.sbin | |
parent | 5ccc261513acf225981dd21bea202fea8c25ed3c (diff) |
(more or less) handle ESRCH for RTM_ADD
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bgpd/kroute.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/kroute.c b/usr.sbin/bgpd/kroute.c index ce39206cadc..5dba60e232d 100644 --- a/usr.sbin/bgpd/kroute.c +++ b/usr.sbin/bgpd/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.14 2003/12/25 02:09:19 henning Exp $ */ +/* $OpenBSD: kroute.c,v 1.15 2003/12/25 02:49:05 henning Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -111,7 +111,8 @@ retry: } else if (r.hdr.rtm_type == RTM_DELETE) { logit(LOG_INFO, "route vanished before delete"); return (0); - } + } else /* nexthop invalid */ + return (-1); break; case EEXIST: /* connected route */ return (-2); |