VirtualBox

Ignore:
Timestamp:
Jun 4, 2009 11:30:32 AM (16 years ago)
Author:
vboxsync
Message:

Incorrect type lead to division by zero crashes in VBoxSVC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/DHCPServerImpl.cpp

    r18208 r20268  
    102102    m.IPAddress = aNode.stringValue ("IPAddress");
    103103    m.networkMask = aNode.stringValue ("networkMask");
    104     m.enabled = aNode.value <BOOL> ("enabled");
     104    m.enabled = aNode.value <bool> ("enabled");
    105105    m.lowerIP = aNode.stringValue ("lowerIP");
    106106    m.upperIP = aNode.stringValue ("upperIP");
     
    129129    aNode.setValue <Bstr> ("lowerIP", m.lowerIP);
    130130    aNode.setValue <Bstr> ("upperIP", m.upperIP);
    131     aNode.setValue <BOOL> ("enabled", m.enabled);
     131    aNode.setValue <bool> ("enabled", !!m.enabled);
    132132
    133133    return S_OK;
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