diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-06-14 15:01:52 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-06-14 15:01:52 +0000 |
commit | 82b20cf043efc099a8fae6eb9355f346147f0675 (patch) | |
tree | b91e4454087e7bea698f941d2f95812f55228108 /usr.sbin | |
parent | b8f359240f32023375ce99036e1daea20aa02713 (diff) |
Don't unref something that is used later. send_rtmsg() will call
rtlabel_id2name() so call rtlable_unref() after that.
OK henning@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bgpd/kroute.c | 6 |
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); |