Changeset 71435 in vbox for trunk/src/VBox/Runtime/common
- Timestamp:
- Mar 21, 2018 2:30:29 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/net/netaddrstr2.cpp
r69111 r71435 72 72 if (ppszNext != NULL) 73 73 *ppszNext = pszNext; 74 return VINF_SUCCESS;74 return rc; 75 75 } 76 76 … … 94 94 pcszAddr = RTStrStripL(pcszAddr); 95 95 rc = rtNetStrToIPv4AddrEx(pcszAddr, pAddr, &pszNext); 96 if (rc != VINF_SUCCESS) 97 return VERR_INVALID_PARAMETER; 98 99 pszNext = RTStrStripL(pszNext); 100 if (*pszNext != '\0') 96 if (RT_FAILURE(rc) || rc == VWRN_TRAILING_CHARS) 101 97 return VERR_INVALID_PARAMETER; 102 98 … … 138 134 pcszAddr = RTStrStripL(pcszAddr); 139 135 rc = rtNetStrToIPv4AddrEx(pcszAddr, &addrIPv4, &pszNext); 140 if (rc != VINF_SUCCESS) 141 return false; 142 143 pszNext = RTStrStripL(pszNext); 144 if (*pszNext != '\0') 136 if (RT_FAILURE(rc) || rc == VWRN_TRAILING_CHARS) 145 137 return false; 146 138
Note:
See TracChangeset
for help on using the changeset viewer.