VirtualBox

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


Ignore:
Timestamp:
Sep 24, 2019 4:24:21 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
133580
Message:

NAT: Terminate the TFTP session if the client sends us an error,
otherwise we will be confused if the client initiates the new session
from the same port.

File:
1 edited

Legend:

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

    r80985 r80986  
    856856            tftpProcessACK(pData, pTftpIpHeader);
    857857            break;
     858
     859        case TFTP_ERROR:
     860        {
     861            PTFTPSESSION pTftpSession;
     862            int rc = tftpSessionFind(pData, pTftpIpHeader, &pTftpSession);
     863            if (RT_SUCCESS(rc))
     864                tftpSessionTerminate(pTftpSession);
     865        }
     866
    858867        default:;
    859868    }
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