VirtualBox

Ignore:
Timestamp:
Sep 18, 2015 2:31:28 AM (9 years ago)
Author:
vboxsync
Message:

VBoxNetFlt/darwin: vboxNetFltDarwinIffInputOutputWorker - when we we
need to drop the packet, don't free it a few levels of nesting deep.
Makes the relation between mbuf_freem and EJUSTRETURN more obvious.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/darwin/VBoxNetFlt-darwin.cpp

    r57816 r57817  
    930930            if (vboxNetFltDarwinIsPromiscuous(pThis))
    931931                fDropIt = false;
    932             else
    933                 mbuf_freem(pMBuf);
    934932        }
    935933    }
     
    937935    vboxNetFltRelease(pThis, true /* fBusy */);
    938936
    939     return fDropIt ? EJUSTRETURN : 0;
     937    if (fDropIt)
     938    {
     939        mbuf_freem(pMBuf);
     940        return EJUSTRETURN;
     941    }
     942    return 0;
    940943}
    941944
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