From: Roy Marples Date: Tue, 11 Mar 2014 22:35:22 +0000 (+0000) Subject: Fix a crash when dumping a DHCPv4 lease. X-Git-Tag: v6.3.2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a42546514b479ea400d6ebe50cb11c128070fe7;p=thirdparty%2Fdhcpcd.git Fix a crash when dumping a DHCPv4 lease. Thanks to Mikhail Efremov. --- diff --git a/dhcp.c b/dhcp.c index 83523a87..6221db7a 100644 --- a/dhcp.c +++ b/dhcp.c @@ -2703,7 +2703,6 @@ dhcp_dump(const char *ifname) ifp->options = calloc(1, sizeof(*ifp->options)); if (ifp->options == NULL) goto eexit; - strlcpy(ifp->name, ifname, sizeof(ifp->name)); snprintf(state->leasefile, sizeof(state->leasefile), LEASEFILE, ifp->name); strlcpy(ifp->options->script, SCRIPT, sizeof(ifp->options->script));