fixed malformed host name caused by typo

This commit is contained in:
Volker Ruppert 2011-03-13 20:28:29 +00:00
parent e67bb30120
commit 50d34fdfca

View File

@ -598,7 +598,7 @@ int process_dhcp(bx_devmodel_c *netdev, const Bit8u *data, unsigned data_len, Bi
*replyopts ++ = BOOTPOPT_HOST_NAME;
*replyopts ++ = hostname_len;
memcpy(replyopts, hostname, hostname_len);
*replyopts += hostname_len;
replyopts += hostname_len;
free(hostname);
hostname = NULL;
break;