summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/rde_decide.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2004-03-11 14:22:24 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2004-03-11 14:22:24 +0000
commitc55c70dd41eeeb9c88f187d86ec7050e887be7f4 (patch)
tree2733c660cdebc2d11318c89ad70d2333ff7ec8c8 /usr.sbin/bgpd/rde_decide.c
parent4711b14624e2746e8235e925b9df2b14b11db7f9 (diff)
Shutdown the RDE cleanly on exit. Plug some memleaks. OK henning@
Diffstat (limited to 'usr.sbin/bgpd/rde_decide.c')
-rw-r--r--usr.sbin/bgpd/rde_decide.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde_decide.c b/usr.sbin/bgpd/rde_decide.c
index 9ba276be0ba..1372a879580 100644
--- a/usr.sbin/bgpd/rde_decide.c
+++ b/usr.sbin/bgpd/rde_decide.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde_decide.c,v 1.32 2004/03/01 16:02:01 claudio Exp $ */
+/* $OpenBSD: rde_decide.c,v 1.33 2004/03/11 14:22:23 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org>
@@ -195,7 +195,8 @@ prefix_evaluate(struct prefix *p, struct pt_entry *pte)
/* decision process is turned off */
if (p != NULL)
LIST_INSERT_HEAD(&pte->prefix_h, p, prefix_l);
- ENSURE(pte->active == NULL);
+ if (pte->active != NULL)
+ pte->active = NULL;
return;
}