VirtualBox

Changeset 62750 in vbox for trunk/src/VBox/Storage


Ignore:
Timestamp:
Jul 30, 2016 4:18:24 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109328
Message:

Storage: MSC understandably is a little confused about the state in iscsiAttach, I mean, who isn't? Our MSC version is evidently to simple to figure out that iscsiCommandSync is just fine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/ISCSI.cpp

    r62748 r62750  
    12181218static DECLCALLBACK(int) iscsiAttach(void *pvUser)
    12191219{
    1220     int rc;
     1220    int rc = VINF_SUCCESS;      /* (MSC is used uninitialized) */
    12211221    uint32_t itt;
    12221222    uint32_t csg, nsg, substate;
     
    12271227    uint8_t pbChallenge[1024];  /* RFC3720 specifies this as maximum. */
    12281228    size_t cbChallenge = 0;     /* shut up gcc */
    1229     uint8_t bChapIdx;
     1229    uint8_t bChapIdx = 0;       /* (MSC is used uninitialized) */
    12301230    uint8_t aResponse[RTMD5HASHSIZE];
    12311231    uint32_t cnISCSIReq = 0;
     
    15401540                                }
    15411541                                rc = RTStrToUInt8Ex(pcszChapIdxTarget, &pszNext, 0, &bChapIdx);
    1542                                 if ((rc > VINF_SUCCESS) || *pszNext != '\0')
     1542/** @todo r=bird: Unsafe use of pszNext on failure.  The code should probably
     1543 *        use RTStrToUInt8Full and check for rc != VINF_SUCCESS. */
     1544                                if (rc > VINF_SUCCESS || *pszNext != '\0')
    15431545                                {
    15441546                                    rc = VERR_PARSE_ERROR;
     
    36883690        if (fRetry)
    36893691        {
     3692            rc = VINF_SUCCESS; /* (MSC incorrectly thinks it can be uninitialized) */
    36903693            for (unsigned i = 0; i < 10; i++)
    36913694            {
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