VirtualBox

Changeset 42190 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jul 17, 2012 1:59:51 PM (13 years ago)
Author:
vboxsync
Message:

NAT: TFTP: possible status code overwriting.

File:
1 edited

Legend:

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

    r42187 r42190  
    591591    {
    592592        if (pTftpSession->OptionBlkSize.u64Value > UINT16_MAX)
    593             return -1;
     593            rc = VERR_INVALID_PARAMETER;
    594594        else
    595595            rc = tftpAddOptionToOACK(pData, m, "blksize", pTftpSession->OptionBlkSize.u64Value);
    596596    }
    597     if (pTftpSession->OptionTSize.fRequested)
     597    if (   RT_SUCCESS(rc)
     598        && pTftpSession->OptionTSize.fRequested)
    598599        rc = tftpAddOptionToOACK(pData, m, "tsize", pTftpSession->OptionTSize.u64Value);
    599600
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