VirtualBox

Ignore:
Timestamp:
Jan 13, 2009 3:52:36 PM (16 years ago)
Author:
vboxsync
Message:

NAT:fix #3480

File:
1 edited

Legend:

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

    r15792 r15919  
    264264    register struct mbuf *m;
    265265
    266     struct tseg_qent *te;
     266    struct tseg_qent *te = NULL;
    267267    DEBUG_CALL("tcp_close");
    268268    DEBUG_ARG("tp = %lx", (long )tp);
    269269    /*XXX: freeing the reassembly queue */
    270     LIST_FOREACH(te, &tp->t_segq, tqe_q)
    271     {
     270    while (!LIST_EMPTY(&tp->t_segq))
     271    {
     272        te = LIST_FIRST(&tp->t_segq);
    272273        LIST_REMOVE(te, tqe_q);
    273274        m_freem(pData, te->tqe_m);
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