Changeset 62750 in vbox for trunk/src/VBox/Storage
- Timestamp:
- Jul 30, 2016 4:18:24 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 109328
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/ISCSI.cpp
r62748 r62750 1218 1218 static DECLCALLBACK(int) iscsiAttach(void *pvUser) 1219 1219 { 1220 int rc ;1220 int rc = VINF_SUCCESS; /* (MSC is used uninitialized) */ 1221 1221 uint32_t itt; 1222 1222 uint32_t csg, nsg, substate; … … 1227 1227 uint8_t pbChallenge[1024]; /* RFC3720 specifies this as maximum. */ 1228 1228 size_t cbChallenge = 0; /* shut up gcc */ 1229 uint8_t bChapIdx ;1229 uint8_t bChapIdx = 0; /* (MSC is used uninitialized) */ 1230 1230 uint8_t aResponse[RTMD5HASHSIZE]; 1231 1231 uint32_t cnISCSIReq = 0; … … 1540 1540 } 1541 1541 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') 1543 1545 { 1544 1546 rc = VERR_PARSE_ERROR; … … 3688 3690 if (fRetry) 3689 3691 { 3692 rc = VINF_SUCCESS; /* (MSC incorrectly thinks it can be uninitialized) */ 3690 3693 for (unsigned i = 0; i < 10; i++) 3691 3694 {
Note:
See TracChangeset
for help on using the changeset viewer.