summaryrefslogtreecommitdiff
path: root/usr.sbin/ldpd/kroute.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2010-02-19 12:47:30 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2010-02-19 12:47:30 +0000
commit597419a39290e8714c6f6147b4496bb2a0c32c09 (patch)
tree65ede78fdde14aa4bbd848083025c8e8f0ad5b81 /usr.sbin/ldpd/kroute.c
parent7600739c4bfe0337c8c5012b9260d96ea176fa16 (diff)
Do not double free a knode when kroute_insert() fails. kroute_insert()
will free the node if something fails. OK michele
Diffstat (limited to 'usr.sbin/ldpd/kroute.c')
-rw-r--r--usr.sbin/ldpd/kroute.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/ldpd/kroute.c b/usr.sbin/ldpd/kroute.c
index 2c20f48e54e..6030549d87c 100644
--- a/usr.sbin/ldpd/kroute.c
+++ b/usr.sbin/ldpd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.5 2009/09/28 09:48:46 michele Exp $ */
+/* $OpenBSD: kroute.c,v 1.6 2010/02/19 12:47:29 claudio Exp $ */
/*
* Copyright (c) 2009 Michele Marchetto <michele@openbsd.org>
@@ -221,7 +221,6 @@ kr_change_fib(struct kroute_node *kr, struct kroute *kroute, int action)
if (kroute_insert(kn) == -1) {
log_debug("kr_update_fib: cannot insert %s",
inet_ntoa(kn->r.nexthop));
- free(kn);
}
}