changeset 1522:6c7fe53a6a9f draft

Fix a crash when using clientid's.
author Roy Marples <roy@marples.name>
date Thu, 03 Jun 2010 23:28:13 +0000
parents 27ee5b980f8f
children 79d2bf7fe634
files dhcpcd.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dhcpcd.c	Wed May 26 07:16:38 2010 +0000
+++ b/dhcpcd.c	Thu Jun 03 23:28:13 2010 +0000
@@ -765,6 +765,7 @@
 	}
 
 	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);