VirtualBox

Changeset 10739 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jul 18, 2008 9:12:10 AM (16 years ago)
Author:
vboxsync
Message:

Fixed a couple of pIfSender uses I had overlooked.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/SrvIntNetR0.cpp

    r10735 r10739  
    758758     */
    759759    PINTNETTRUNKIF pTrunkIf = pNetwork->pTrunkIF;
    760     if (    pIfSender
     760    if (    !pIfSender
    761761        &&  pTrunkIf)
    762762        intnetR0TrunkIfSend(pTrunkIf, pNetwork, INTNETTRUNKDIR_HOST | INTNETTRUNKDIR_WIRE, pSG, fTrunkLocked);
     
    826826     */
    827827    PINTNETTRUNKIF pTrunkIf = pNetwork->pTrunkIF;
    828     if (    pIfSender
     828    if (    !pIfSender
    829829        &&  pTrunkIf
    830830        &&  pTrunkIf->pIfPort)
     
    882882    AssertPtrNull(pIfSender);
    883883    Assert(pIfSender ? fSrc == 0 : fSrc != 0);
    884     Assert(pNetwork == pIfSender->pNetwork);
     884    Assert(!pIfSender || pNetwork == pIfSender->pNetwork);
    885885    AssertPtr(pSG);
    886886    Assert(pSG->cSegsUsed >= 1);
     
    892892     * Send statistics.
    893893     */
    894     STAM_REL_COUNTER_INC(&pIfSender->pIntBuf->cStatSends);
    895     STAM_REL_COUNTER_ADD(&pIfSender->pIntBuf->cbStatSend, pSG->cbTotal);
     894    if (pIfSender)
     895    {
     896        STAM_REL_COUNTER_INC(&pIfSender->pIntBuf->cStatSends);
     897        STAM_REL_COUNTER_ADD(&pIfSender->pIntBuf->cbStatSend, pSG->cbTotal);
     898    }
    896899
    897900    /*
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