diff options
author | 2005-06-14 15:01:51 +0000 | |
---|---|---|
committer | 2005-06-14 15:01:51 +0000 | |
commit | 1f99d70125842de587f2a50162ed9ae936a10c8a (patch) | |
tree | 4fe919619912a5cc493fc10c05639455b0b2d03b | |
parent | Remove de(4) from cats, it does not work for any of the developers in (diff) | |
download | wireguard-openbsd-1f99d70125842de587f2a50162ed9ae936a10c8a.tar.xz wireguard-openbsd-1f99d70125842de587f2a50162ed9ae936a10c8a.zip |
Don't unref something that is used later. send_rtmsg() will call
rtlabel_id2name() so call rtlable_unref() after that.
OK henning@
-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); |