summaryrefslogtreecommitdiffstats
path: root/proto/ospf/lsack.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2004-06-01 15:12:10 +0200
committerOndrej Filip <feela@network.cz>2004-06-01 15:12:10 +0200
commit035f6acbfec1e06a207217ae81153b67ced995f3 (patch)
tree0f30c642631e1a0d370ac45e17c99d13ab4c7332 /proto/ospf/lsack.c
parent8281ff201e1eebe35cb8e7716565361bed77a6cd (diff)
downloadbird-035f6acbfec1e06a207217ae81153b67ced995f3.tar
bird-035f6acbfec1e06a207217ae81153b67ced995f3.zip
Patch from Andreas Steinmetz <ast@domdv.de>
Diffstat (limited to 'proto/ospf/lsack.c')
-rw-r--r--proto/ospf/lsack.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/proto/ospf/lsack.c b/proto/ospf/lsack.c
index 51183dd..4b5f3b9 100644
--- a/proto/ospf/lsack.c
+++ b/proto/ospf/lsack.c
@@ -40,7 +40,7 @@ ospf_lsa_delay(struct ospf_neighbor *n,struct ospf_lsa_header *h,
{
struct lsah_n *no;
- no=mb_alloc(p->pool,sizeof(struct lsah_n));
+ no=mb_alloc(n->pool,sizeof(struct lsah_n));
memcpy(&no->lsa,h,sizeof(struct ospf_lsa_header));
add_tail(&n->ackl, NODE no);
DBG("Adding delay ack for %I, ID: %I, RT: %I, Type: %u\n",n->rid,
@@ -213,6 +213,8 @@ ospf_lsack_rx(struct ospf_lsack_packet *ps, struct proto *p,
DBG("Deleting LS Id: %I RT: %I Type: %u from LS Retl for neighbor %I\n",
lsa.id,lsa.rt,lsa.type,n->rid);
s_rem_node(SNODE en);
+ if(en->lsa_body!=NULL) mb_free(en->lsa_body);
+ en->lsa_body=NULL;
ospf_hash_delete(n->lsrth,en);
}
}