diff options
author | Michele Marchetto <michele@cvs.openbsd.org> | 2006-11-10 11:09:57 +0000 |
---|---|---|
committer | Michele Marchetto <michele@cvs.openbsd.org> | 2006-11-10 11:09:57 +0000 |
commit | dc7048abf3b3cb3c0cf88d43b1d2855c32ef1fe1 (patch) | |
tree | 5e7aaef1f848dbda3051ec796d9e4161b9b4e7e5 /usr.sbin/dvmrpd/neighbor.c | |
parent | b6f99c47962964adb3daf4bfc772965ac50f901e (diff) |
introduce reference count for struct route_report so it can be shared and
freed correctly.
OK norby@ henning@
Diffstat (limited to 'usr.sbin/dvmrpd/neighbor.c')
-rw-r--r-- | usr.sbin/dvmrpd/neighbor.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/dvmrpd/neighbor.c b/usr.sbin/dvmrpd/neighbor.c index 074544f61e7..3f27c507a1b 100644 --- a/usr.sbin/dvmrpd/neighbor.c +++ b/usr.sbin/dvmrpd/neighbor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: neighbor.c,v 1.2 2006/06/01 18:18:25 norby Exp $ */ +/* $OpenBSD: neighbor.c,v 1.3 2006/11/10 11:09:56 michele Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -382,8 +382,7 @@ int nbr_act_clear_lists(struct nbr *nbr) { log_debug("nbr_act_clear_lists: neighbor ID %s", inet_ntoa(nbr->id)); - - /* XXX clear lists */ + rr_list_clr(&nbr->rr_list); return (0); } |