From: Roy Marples Date: Thu, 9 Apr 2020 20:55:33 +0000 (+0100) Subject: route: revert prior change to rt_new0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e75663048b9dd9296ed5e457d0ae37f30bf6ffd1;p=thirdparty%2Fdhcpcd.git route: revert prior change to rt_new0 --- diff --git a/src/route.c b/src/route.c index 125c9532..401ce07c 100644 --- a/src/route.c +++ b/src/route.c @@ -349,8 +349,11 @@ rt_new0(struct dhcpcd_ctx *ctx) #endif } else #endif - if ((rt = calloc(1, sizeof(*rt))) == NULL) + if ((rt = malloc(sizeof(*rt))) == NULL) { logerr(__func__); + return NULL; + } + memset(rt, 0, sizeof(*rt)); return rt; }