Usermode/dhcpclient - Fixed warning from scan-build
authorJohn Hodge <[email protected]>
Mon, 22 Jul 2013 12:16:03 +0000 (20:16 +0800)
committerJohn Hodge <[email protected]>
Mon, 22 Jul 2013 12:16:03 +0000 (20:16 +0800)
Usermode/Applications/dhcpclient_src/main.c

index 5fc0be4..affe1fd 100644 (file)
@@ -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;

UCC git Repository :: git.ucc.asn.au