VirtualBox

Changeset 28494 in vbox


Ignore:
Timestamp:
Apr 19, 2010 6:49:19 PM (15 years ago)
Author:
vboxsync
Message:

NAT: correctly returns null values to DrvNAT in case zone has run out of room.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/misc.c

    r28490 r28494  
    384384
    385385    m = m_getjcl(pData, M_NOWAIT, MT_HEADER, M_PKTHDR, size);
     386    if (m == NULL)
     387    {
     388        *ppvBuf = NULL;
     389        *pcbBuf = 0;
     390        return NULL;
     391    }
    386392    m->m_len = size;
    387393    *ppvBuf = mtod(m, void *);
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