mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 18:44:54 +00:00
Merge pull request #7603 from donaldsharp/ospf_crash_fix
ospfd: Prevent crash by accessing memory not owned.
This commit is contained in:
commit
4cfb2ae8c0
@ -416,7 +416,7 @@ static void *route_set_metric_compile(const char *arg)
|
||||
{
|
||||
struct ospf_metric *metric;
|
||||
|
||||
metric = XCALLOC(MTYPE_ROUTE_MAP_COMPILED, sizeof(uint32_t));
|
||||
metric = XCALLOC(MTYPE_ROUTE_MAP_COMPILED, sizeof(*metric));
|
||||
metric->used = false;
|
||||
|
||||
if (all_digit(arg))
|
||||
|
Loading…
Reference in New Issue
Block a user