mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 02:53:55 +00:00
Merge pull request #1449 from donaldsharp/match_local_peer
bgpd: XMALLOC usage causes borken assumption in route_match_peer_free
This commit is contained in:
commit
55dc9e113b
@ -299,7 +299,7 @@ static void *route_match_peer_compile(const char *arg)
|
|||||||
struct bgp_match_peer_compiled *pc;
|
struct bgp_match_peer_compiled *pc;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
pc = XMALLOC(MTYPE_ROUTE_MAP_COMPILED,
|
pc = XCALLOC(MTYPE_ROUTE_MAP_COMPILED,
|
||||||
sizeof(struct bgp_match_peer_compiled));
|
sizeof(struct bgp_match_peer_compiled));
|
||||||
|
|
||||||
ret = str2sockunion(strcmp(arg, "local") ? arg : "0.0.0.0", &pc->su);
|
ret = str2sockunion(strcmp(arg, "local") ? arg : "0.0.0.0", &pc->su);
|
||||||
|
Loading…
Reference in New Issue
Block a user