VirtualBox

Changeset 53056 in vbox for trunk/src


Ignore:
Timestamp:
Oct 14, 2014 3:21:09 PM (10 years ago)
Author:
vboxsync
Message:

NAT: Don't leak socket::so_m in the error leg of sorecvfrom()

File:
1 edited

Legend:

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

    r52798 r53056  
    926926        {
    927927            m_freem(pData, m);
    928             so->so_m = NULL;
    929928
    930929            if (!soIgnorableErrorCode(errno))
     
    940939                Log2((" rx error, tx icmp ICMP_UNREACH:%i\n", code));
    941940                icmp_error(pData, so->so_m, ICMP_UNREACH, code, 0, strerror(errno));
     941                so->so_m = NULL;
    942942            }
    943943        }
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