VirtualBox

Changeset 45323 in vbox for trunk/src


Ignore:
Timestamp:
Apr 4, 2013 4:59:29 AM (12 years ago)
Author:
vboxsync
Message:

NAT:dnsproxy: handling return from so_timeout callback.
1st condition handle the case when dnsproxy already detached expired socket (not in this version).

2nd condition checks so_timeout if dnsproxy's dropped so_timeout from current socket it could be detached (previously dnsproxy queried next nameserver using new socket).

File:
1 edited

Legend:

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

    r44528 r45323  
    737737                if (so->so_timeout != NULL)
    738738                {
     739                    /* so_timeout - might change the so_expire value or
     740                     * drop so_timeout* from so.
     741                     */
    739742                    so->so_timeout(pData, so, so->so_timeout_arg);
     743                    /* on 4.2 so-> 
     744                     */
     745                    if (   so_next->so_prev != so /* so_timeout freed the socket */
     746                        || so->so_timeout)  /* so_timeout just freed so_timeout */
     747                      CONTINUE_NO_UNLOCK(udp);
    740748                }
    741749                UDP_DETACH(pData, so, so_next);
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