VirtualBox

Ignore:
Timestamp:
May 20, 2011 12:02:14 PM (14 years ago)
Author:
vboxsync
Message:

Solaris/VBoxNetFltBow: asserts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/solaris/VBoxNetFltBow-solaris.c

    r36956 r37164  
    507507        }
    508508    }
    509     DB_TYPE(pMsg) = M_DATA;
    510509    return pMsg;
    511510}
     
    980979LOCAL PVBOXNETFLTVNIC vboxNetFltSolarisAllocVNIC(void)
    981980{
    982     PVBOXNETFLTVNIC pVNIC = RTMemAlloc(sizeof(VBOXNETFLTVNIC));
     981    PVBOXNETFLTVNIC pVNIC = RTMemAllocZ(sizeof(VBOXNETFLTVNIC));
    983982    if (RT_UNLIKELY(!pVNIC))
    984983        return NULL;
     
    10051004LOCAL inline void vboxNetFltSolarisFreeVNIC(PVBOXNETFLTVNIC pVNIC)
    10061005{
    1007     if (pVNIC)
    1008         RTMemFree(pVNIC);
     1006    RTMemFree(pVNIC);
    10091007}
    10101008
     
    10181016LOCAL void vboxNetFltSolarisDestroyVNIC(PVBOXNETFLTVNIC pVNIC)
    10191017{
     1018    AssertPtrReturnVoid(pVNIC);
     1019    AssertMsgReturnVoid(pVNIC->u32Magic == VBOXNETFLTVNIC_MAGIC, ("pVNIC=%p u32Magic=%#x\n", pVNIC, pVNIC->u32Magic));
    10201020    if (pVNIC)
    10211021    {
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