VirtualBox

Ignore:
Timestamp:
Feb 14, 2012 7:22:20 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
76261
Message:

NAT: sorecvoob() should regard return value of soread() operation.

File:
1 edited

Legend:

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

    r39556 r40120  
    505505     */
    506506    ret = soread(pData, so);
    507     tp->snd_up = tp->snd_una + SBUF_LEN(&so->so_snd);
    508     tp->t_force = 1;
    509     tcp_output(pData, tp);
    510     tp->t_force = 0;
     507    if (RT_LIKELY(ret > 0))
     508    {
     509        tp->snd_up = tp->snd_una + SBUF_LEN(&so->so_snd);
     510        tp->t_force = 1;
     511        tcp_output(pData, tp);
     512        tp->t_force = 0;
     513    }
    511514}
    512515#ifndef VBOX_WITH_SLIRP_BSD_SBUF
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