fix memset

This commit is contained in:
technyon
2023-01-31 17:26:03 +01:00
parent b44bd1f8b6
commit 3a65e2ad5a

View File

@@ -27,10 +27,10 @@ void DhcpClass::reset_DHCP_lease()
{ {
// zero out _dhcpSubnetMask, _dhcpGatewayIp, _dhcpLocalIp, _dhcpDhcpServerIp, _dhcpDnsServerIp // zero out _dhcpSubnetMask, _dhcpGatewayIp, _dhcpLocalIp, _dhcpDhcpServerIp, _dhcpDnsServerIp
memset(_dhcpLocalIp, 0, sizeof(_dhcpLocalIp)); memset(_dhcpLocalIp, 0, sizeof(_dhcpLocalIp));
memset(_dhcpGatewayIp, 0, sizeof(_dhcpGatewayIp));
memset(_dhcpSubnetMask, 0, sizeof(_dhcpSubnetMask)); memset(_dhcpSubnetMask, 0, sizeof(_dhcpSubnetMask));
memset(_dhcpGatewayIp, 0, sizeof(_dhcpGatewayIp));
memset(_dhcpDhcpServerIp, 0, sizeof(_dhcpDhcpServerIp));
memset(_dhcpDnsServerIp, 0, sizeof(_dhcpDnsServerIp)); memset(_dhcpDnsServerIp, 0, sizeof(_dhcpDnsServerIp));
memset(_dhcpLocalIp, 0, sizeof(_dhcpLocalIp));
} }
//return:0 on error, 1 if request is sent and response is received //return:0 on error, 1 if request is sent and response is received
int DhcpClass::request_DHCP_lease() int DhcpClass::request_DHCP_lease()