diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-03-13 17:01:16 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-03-13 17:01:16 +0000 |
commit | bed6dbc986aa966234fc4f2abc3b780ee1f0afd2 (patch) | |
tree | 3a35334d67532cfed62dc09d052dce3e7382052d /usr.sbin/ospfd | |
parent | dd6c6035ee79aded26a8ec69ed83e7df14d58c4f (diff) |
Don't call rtlabel_unref() twice on RTM_DELETE. kroute_remove() does it
so don't unref before calling kroute_remove() or we end up with wrong
reference counts.
Diffstat (limited to 'usr.sbin/ospfd')
-rw-r--r-- | usr.sbin/ospfd/kroute.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/ospfd/kroute.c b/usr.sbin/ospfd/kroute.c index cc8c2937b8a..40d93115f80 100644 --- a/usr.sbin/ospfd/kroute.c +++ b/usr.sbin/ospfd/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.43 2007/03/13 16:48:03 claudio Exp $ */ +/* $OpenBSD: kroute.c,v 1.44 2007/03/13 17:01:15 claudio Exp $ */ /* * Copyright (c) 2004 Esben Norby <norby@openbsd.org> @@ -1210,7 +1210,6 @@ dispatch_rtmsg(void) if (kr->r.flags & F_OSPFD_INSERTED) main_imsg_compose_rde(IMSG_KROUTE_GET, 0, &kr->r, sizeof(struct kroute)); - rtlabel_unref(kr->r.rtlabel); if (kroute_remove(kr) == -1) return (-1); break; |