Fix a crash when using clientid's.

This commit is contained in:
Roy Marples 2010-06-03 23:28:13 +00:00
parent c99062cac7
commit 1aa604334a

View File

@ -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);