Revision 035f6acb proto/ospf/lsack.c

View differences:

proto/ospf/lsack.c
40 40
{
41 41
  struct lsah_n *no;
42 42

  
43
  no=mb_alloc(p->pool,sizeof(struct lsah_n));
43
  no=mb_alloc(n->pool,sizeof(struct lsah_n));
44 44
  memcpy(&no->lsa,h,sizeof(struct ospf_lsa_header));
45 45
  add_tail(&n->ackl, NODE no);
46 46
  DBG("Adding delay ack for %I, ID: %I, RT: %I, Type: %u\n",n->rid,
......
213 213
    DBG("Deleting LS Id: %I RT: %I Type: %u from LS Retl for neighbor %I\n",
214 214
      lsa.id,lsa.rt,lsa.type,n->rid);
215 215
    s_rem_node(SNODE en);
216
    if(en->lsa_body!=NULL) mb_free(en->lsa_body);
217
    en->lsa_body=NULL;
216 218
    ospf_hash_delete(n->lsrth,en);
217 219
  }  
218 220
}

Also available in: Unified diff