From: John Hodge Date: Mon, 22 Jul 2013 12:16:03 +0000 (+0800) Subject: Usermode/dhcpclient - Fixed warning from scan-build X-Git-Tag: rel0.15~341 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=de359870d96a2b6c35da68ba400870657fbf3615;p=tpg%2Facess2.git Usermode/dhcpclient - Fixed warning from scan-build --- diff --git a/Usermode/Applications/dhcpclient_src/main.c b/Usermode/Applications/dhcpclient_src/main.c index 5fc0be4b..affe1fd1 100644 --- a/Usermode/Applications/dhcpclient_src/main.c +++ b/Usermode/Applications/dhcpclient_src/main.c @@ -308,9 +308,10 @@ void Send_DHCPDISCOVER(tInterface *Iface) msg->options[i++] = 53; // DHCP Message Type msg->options[i++] = 1; msg->options[i++] = 1; // - DHCPDISCOVER - msg->options[i++] = 255; // End of list + msg->options[i ] = 255; // End of list + // UDP Header data[0] = 67; data[1] = 0; // Port data[2] = 4; data[3] = 0; // AddrType data[4] = 255; data[5] = 255; data[6] = 255; data[7] = 255;