]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix a crash when using clientid's.
authorRoy Marples <roy@marples.name>
Thu, 3 Jun 2010 23:28:13 +0000 (23:28 +0000)
committerRoy Marples <roy@marples.name>
Thu, 3 Jun 2010 23:28:13 +0000 (23:28 +0000)
dhcpcd.c

index 16903ed6a19b3ec481a8dd011a2159e9a03bd376..81ca9ee1ac924cbd87b25f63e3716d154a270b35 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -765,6 +765,7 @@ configure_interface1(struct interface *iface)
        }
 
        free(iface->clientid);
+       iface->clientid = NULL;
        if (*ifo->clientid) {
                iface->clientid = xmalloc(ifo->clientid[0] + 1);
                memcpy(iface->clientid, ifo->clientid, ifo->clientid[0] + 1);