VirtualBox

Changeset 15788 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Jan 5, 2009 8:41:39 AM (16 years ago)
Author:
vboxsync
Message:

NAT: fixed return value of drvNATQueueConsumer() if pfnWaitReceiveAvail() returns an error

File:
1 edited

Legend:

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

    r15765 r15788  
    498498    Log(("drvNATQueueConsumer(pItem:%p, pu8Buf:%p, cb:%d)\n", pItem, pItem->pu8Buf, pItem->cb));
    499499    Log2(("drvNATQueueConsumer: pu8Buf:\n%.Rhxd\n", pItem->pu8Buf));
    500     int rc =  pThis->pPort->pfnWaitReceiveAvail(pThis->pPort, 0);
    501     if (RT_FAILURE(rc)) {
    502         return RT_FAILURE(rc);
    503     }
     500    int rc = pThis->pPort->pfnWaitReceiveAvail(pThis->pPort, 0);
     501    if (RT_FAILURE(rc))
     502        return false;
    504503    rc = pThis->pPort->pfnReceive(pThis->pPort, pItem->pu8Buf, pItem->cb);
    505504    AssertRC(rc);
     
    790789#else
    791790            rc = RTReqCreateQueue(&pThis->pReqQueue);
    792             if (RT_FAILURE(rc)) {
     791            if (RT_FAILURE(rc))
     792            {
    793793                LogRel(("Can't create request queue\n"));
    794794                return rc;
     
    796796
    797797            rc = pDrvIns->pDrvHlp->pfnPDMQueueCreate(pDrvIns, sizeof(DRVNATQUEUITEM), 50, 0, drvNATQueueConsumer, &pThis->pSendQueue);
    798             if (RT_FAILURE(rc)){
     798            if (RT_FAILURE(rc))
     799            {
    799800                LogRel(("Can't create send queue\n"));
    800801                return rc;
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