summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpd/kroute.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/kroute.c b/usr.sbin/bgpd/kroute.c
index 5404086dfbd..d49c6024178 100644
--- a/usr.sbin/bgpd/kroute.c
+++ b/usr.sbin/bgpd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.137 2005/06/13 21:16:18 henning Exp $ */
+/* $OpenBSD: kroute.c,v 1.138 2005/06/14 15:01:51 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -279,11 +279,11 @@ kr_delete(struct kroute_label *kl)
htonl(INADDR_LOOPBACK & IN_CLASSA_NET))
return (0);
- rtlabel_unref(kl->kr.labelid);
-
if (send_rtmsg(kr_state.fd, RTM_DELETE, &kl->kr) == -1)
return (-1);
+ rtlabel_unref(kl->kr.labelid);
+
if (kroute_remove(kr) == -1)
return (-1);