VirtualBox

Ignore:
Timestamp:
Aug 10, 2016 1:21:48 PM (8 years ago)
Author:
vboxsync
Message:

NetworkServices: warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/DHCP/NetworkManagerDhcp.cpp

    r62481 r63266  
    6767
    6868    int rc = ConfigurationManager::extractRequestList(pDhcpMsg, cb, opt);
     69    NOREF(rc); /** @todo check */
    6970
    7071    /* 3. Send of offer */
     
    7576    offer4Client(client, pDhcpMsg->bp_xid, opt.au8RawOpt, opt.cbRawOpt);
    7677
    77     return VINF_SUCCESS;
     78    return true;
    7879}
    7980
     
    107108            return true;
    108109        }
    109         else {
    110             /* XXX: Validate request */
    111             RawOption opt;
    112             RT_ZERO(opt);
     110        /* XXX: Validate request */
     111        RawOption opt;
     112        RT_ZERO(opt);
    113113
    114             Client c(client);
    115             int rc = confManager->commitLease4Client(c);
    116             AssertRCReturn(rc, false);
     114        Client c(client);
     115        int rc = confManager->commitLease4Client(c);
     116        AssertRCReturn(rc, false);
    117117
    118             rc = ConfigurationManager::extractRequestList(pDhcpMsg, cb, opt);
    119             AssertRCReturn(rc, false);
     118        rc = ConfigurationManager::extractRequestList(pDhcpMsg, cb, opt);
     119        AssertRCReturn(rc, false);
    120120
    121             ack(client, pDhcpMsg->bp_xid, opt.au8RawOpt, opt.cbRawOpt);
    122         }
     121        ack(client, pDhcpMsg->bp_xid, opt.au8RawOpt, opt.cbRawOpt);
    123122    }
    124123    else
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette