mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-02 22:09:48 +00:00
[bgpd] fix mtype in XFREE and NULL out freed pointer
2006-08-27 Paul Jakma <paul.jakma@sun.com> * bgp_advertise.c: (bgp_sync_delete) fix mtype in XFREE. NULL out peer->hash after free, to be sure.
This commit is contained in:
parent
3414bf250a
commit
9f906c7c56
@ -1,3 +1,8 @@
|
||||
2006-08-27 Paul Jakma <paul.jakma@sun.com>
|
||||
|
||||
* bgp_advertise.c: (bgp_sync_delete) fix mtype in XFREE.
|
||||
NULL out peer->hash after free, to be sure.
|
||||
|
||||
2006-08-06 Paul Jakma <paul.jakma@sun.com>
|
||||
|
||||
* bgp_aspath.c: (aspath_loop_check) Fix the typo-bug which
|
||||
|
@ -403,10 +403,11 @@ bgp_sync_delete (struct peer *peer)
|
||||
for (safi = SAFI_UNICAST; safi < SAFI_MAX; safi++)
|
||||
{
|
||||
if (peer->sync[afi][safi])
|
||||
XFREE (MTYPE_TMP, peer->sync[afi][safi]);
|
||||
XFREE (MTYPE_BGP_SYNCHRONISE, peer->sync[afi][safi]);
|
||||
peer->sync[afi][safi] = NULL;
|
||||
|
||||
if (peer->hash[afi][safi])
|
||||
hash_free (peer->hash[afi][safi]);
|
||||
peer->hash[afi][safi] = NULL;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user