VirtualBox

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


Ignore:
Timestamp:
Dec 10, 2008 8:57:02 AM (16 years ago)
Author:
vboxsync
Message:

slirp: revert r40643

File:
1 edited

Legend:

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

    r15231 r15234  
    371371        /* Correctly update list if detaching last socket in list. */
    372372        if (so == udp_last_so) udp_last_so = &udb;
     373#ifndef VBOX_WITH_SLIRP_ICMP
    373374        closesocket(so->s);
    374375        /* if (so->so_m) m_free(so->so_m);    done by sofree */
    375376
    376377        sofree(pData, so);
     378#else /*! VBOX_WITH_SLIRP_ICMP */
     379        if (so != &pData->icmp_socket) {
     380            closesocket(so->s);
     381            sofree(pData, so);
     382        }
     383#endif /* VBOX_WITH_SLIRP_ICMP */
    377384}
    378385
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