mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-11 20:48:27 +00:00
isisd: Fix size of malloc
Signed-off-by: Christian Franke <chris@opensourcerouting.org> Signed-off-by: Christian Franke <chris@opensourcerouting.org> Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
881d5b3b61
commit
6465ad8861
@ -230,7 +230,7 @@ route_set_metric_compile(const char *arg)
|
||||
if (arg[0] == '\0' || *endp != '\0' || metric > MAX_WIDE_PATH_METRIC)
|
||||
return NULL;
|
||||
|
||||
ret = XCALLOC(MTYPE_ROUTE_MAP_COMPILED, sizeof(ret));
|
||||
ret = XCALLOC(MTYPE_ROUTE_MAP_COMPILED, sizeof(*ret));
|
||||
*ret = metric;
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user