summaryrefslogtreecommitdiffstats
path: root/proto
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2000-05-10 13:57:56 +0200
committerPavel Machek <pavel@ucw.cz>2000-05-10 13:57:56 +0200
commit5e50f0a0289517e64e026cb27e886d49e6044aca (patch)
tree4b6f422f0d341ef9ac45427df4e1f2910e56b3e4 /proto
parente8bd039da8de22de85bd135617b4a8ce9c979585 (diff)
downloadbird-5e50f0a0289517e64e026cb27e886d49e6044aca.tar
bird-5e50f0a0289517e64e026cb27e886d49e6044aca.zip
Don't touch used memory.
Diffstat (limited to 'proto')
-rw-r--r--proto/rip/rip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/rip/rip.c b/proto/rip/rip.c
index 945d7aa..39b38a6 100644
--- a/proto/rip/rip.c
+++ b/proto/rip/rip.c
@@ -643,7 +643,7 @@ rip_real_if_add(struct object_lock *lock)
DBG("adding interface %s\n", iface->name );
rif = new_iface(p, iface, iface->flags, k);
add_head( &P->interfaces, NODE rif );
- DBG("Adding object lock of %p\n", lock);
+ DBG("Adding object lock of %p for %p\n", lock, rif);
rif->lock = lock;
}
@@ -658,8 +658,8 @@ rip_if_notify(struct proto *p, unsigned c, struct iface *iface)
i = find_interface(p, iface);
if (i) {
rem_node(NODE i);
- kill_iface(p, i);
rfree(i->lock);
+ kill_iface(p, i);
}
}
if (c & IF_CHANGE_UP) {