VirtualBox

Ignore:
Timestamp:
Dec 10, 2008 6:52:17 AM (16 years ago)
Author:
vboxsync
Message:

slirp: ICMP socket isn't enqued anymore, so udp_detach shouldn't be aware of ICMP socket

File:
1 edited

Legend:

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

    r15191 r15229  
    367367        /* Correctly update list if detaching last socket in list. */
    368368        if (so == udp_last_so) udp_last_so = &udb;
    369 #ifndef VBOX_WITH_SLIRP_ICMP
    370369        closesocket(so->s);
    371370        /* if (so->so_m) m_free(so->so_m);    done by sofree */
    372371
    373372        sofree(pData, so);
    374 #else /*! VBOX_WITH_SLIRP_ICMP */
    375         if (so != &pData->icmp_socket) {
    376             closesocket(so->s);
    377             sofree(pData, so);
    378         }
    379 #endif /* VBOX_WITH_SLIRP_ICMP */
    380373}
    381374
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