From 6465ad886120f514001e826d35efa14ec0ba409c Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Tue, 14 Jun 2016 20:07:06 +0200 Subject: isisd: Fix size of malloc Signed-off-by: Christian Franke Signed-off-by: Christian Franke Acked-by: Donald Sharp --- isisd/isis_routemap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'isisd/isis_routemap.c') diff --git a/isisd/isis_routemap.c b/isisd/isis_routemap.c index 1f947fb04..070965b2d 100644 --- a/isisd/isis_routemap.c +++ b/isisd/isis_routemap.c @@ -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; -- cgit v1.2.3