From 035f6acbfec1e06a207217ae81153b67ced995f3 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Tue, 1 Jun 2004 13:12:10 +0000 Subject: Patch from Andreas Steinmetz --- proto/ospf/lsack.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'proto/ospf/lsack.c') diff --git a/proto/ospf/lsack.c b/proto/ospf/lsack.c index 51183ddc..4b5f3b91 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); } } -- cgit v1.2.3