ports/net/zebra/files/patch-ospf
Munechika SUMIKAWA 450add3661 Fix memory leak.
See http://marc.theaimsgroup.com/?l=zebra&m=111931575510231&w=2 in detail

PR:		ports/82461
Submitted by:	dikshie <dikshie@lapi.itb.ac.id>
2005-06-30 07:25:18 +00:00

19 lines
594 B
Text

--- ospfd/ospf_packet.c.original Thu May 19 14:22:55 2005
+++ ospfd/ospf_packet.c Thu May 19 14:23:32 2005
@@ -270,7 +270,7 @@
ospfh = (struct ospf_header *) ibuf;
/* Get pointer to the end of the packet. */
- pdigest = ibuf + length;
+ pdigest = (unsigned char *)ibuf + length;
/* Get secret key. */
ck = ospf_crypt_key_lookup (OSPF_IF_PARAM (oi, auth_crypt),
@@ -1786,6 +1786,7 @@
if (listcount (mylsa_upds) > 0)
ospf_opaque_self_originated_lsa_received (nbr, mylsa_upds);
+ list_delete (mylsa_acks);
list_delete (mylsa_upds);
#endif /* HAVE_OPAQUE_LSA */