VirtualBox

Ignore:
Timestamp:
Feb 7, 2017 1:17:48 PM (8 years ago)
Author:
vboxsync
Message:

VBoxNetDHCP: fix option iteration.

File:
1 edited

Legend:

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

    r65119 r65659  
    343343{
    344344    Assert(uOption != RTNET_DHCP_OPT_PAD);
     345    Assert(uOption != RTNET_DHCP_OPT_END);
    345346
    346347    /*
     
    369370            pb++;
    370371        }
     372        else if (uCur == RTNET_DHCP_OPT_END)
     373            break;
    371374        else if (cbLeft <= 1)
    372375            break;
     
    384387            }
    385388            pb     += cbCur + 2;
    386             cbLeft -= cbCur - 2;
     389            cbLeft -= cbCur + 2;
    387390        }
    388391    }
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