Skip to content

Commit

Permalink
isisd: Fix size of malloc
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
  • Loading branch information
cfra authored and pjakma committed Oct 17, 2016
1 parent 985823f commit ef9bc88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion isisd/isis_routemap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ef9bc88

Please sign in to comment.