VirtualBox

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


Ignore:
Timestamp:
Apr 24, 2014 2:28:08 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
93447
Message:

NAT: #7342: debug assertion in sofree() triggered by ftp connections.
Do a minimal stop-gap fix by compiling libalias with NO_USE_SOCKETS.
Two wrongs don't make a right, but this at least averts harm.

Location:
trunk/src/VBox/Devices/Network/slirp
Files:
3 edited

Legend:

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

    r50136 r51137  
    10041004}
    10051005
    1006 #ifdef VBOX
     1006#if defined(VBOX) && !defined(NO_USE_SOCKETS)
     1007
    10071008/**
    10081009 * when slirp delete the link we need inform libalias about it.
     
    10211022    }
    10221023}
    1023 #endif /* !VBOX */
     1024#endif /* VBOX && !NO_USE_SOCKETS */
    10241025
    10251026static void
     
    10271028{
    10281029    struct libalias *la = lnk->la;
     1030#ifndef NO_USE_SOCKETS
    10291031    LogFlowFunc(("ENTER: lnk->pSo:%R[natsock]\n", lnk->pSo));
     1032#else
     1033    LogFlowFuncEnter();
     1034#endif
    10301035
    10311036    LIBALIAS_LOCK_ASSERT(la);
  • trunk/src/VBox/Devices/Network/slirp/slirp.h

    r44528 r51137  
    393393# define bcmp(a1, a2, len) memcmp((a1), (a2), (len))
    394394# define NO_FW_PUNCH
     395/* Two wrongs don't make a right, but this at least averts harm. */
     396# define NO_USE_SOCKETS
    395397
    396398# ifdef alias_addr
  • trunk/src/VBox/Devices/Network/slirp/socket.c

    r46593 r51137  
    204204        udp_last_so = &udb;
    205205
     206#if 0 /* XXX: !defined(NO_USE_SOCKETS) */
    206207    /* libalias notification */
    207208    if (so->so_pvLnk)
    208209        slirpDeleteLinkSocket(so->so_pvLnk);
     210#endif
     211
    209212    /* check if mbuf haven't been already freed  */
    210213    if (so->so_m != NULL)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette