Changeset 98288 in vbox for trunk/src/VBox/Main/src-server/DHCPConfigImpl.cpp
- Timestamp:
- Jan 24, 2023 3:32:43 PM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/DHCPConfigImpl.cpp
r98103 r98288 392 392 */ 393 393 DhcpOption *pParsed = NULL; 394 int rc= VINF_SUCCESS;394 int vrc = VINF_SUCCESS; 395 395 try 396 396 { 397 pParsed = DhcpOption::parse((uint8_t)aOption, aEncoding, aValue.c_str(), & rc);397 pParsed = DhcpOption::parse((uint8_t)aOption, aEncoding, aValue.c_str(), &vrc); 398 398 } 399 399 catch (std::bad_alloc &) … … 423 423 } 424 424 425 if ( rc == VERR_WRONG_TYPE)425 if (vrc == VERR_WRONG_TYPE) 426 426 return m_pHack->setError(E_INVALIDARG, tr("Unsupported encoding %d (option %d, value %s)"), 427 427 (int)aEncoding, (int)aOption, aValue.c_str()); 428 if ( rc == VERR_NOT_SUPPORTED)428 if (vrc == VERR_NOT_SUPPORTED) 429 429 return m_pHack->setError(E_INVALIDARG, tr("Unsupported option %d (encoding %d, value %s)"), 430 430 (int)aOption, (int)aEncoding, aValue.c_str()); 431 return m_pHack->setError(E_INVALIDARG, tr("Malformed option %d value '%s' (encoding %d, rc=%Rrc)"),432 (int)aOption, aValue.c_str(), (int)aEncoding, rc);431 return m_pHack->setError(E_INVALIDARG, tr("Malformed option %d value '%s' (encoding %d, vrc=%Rrc)"), 432 (int)aOption, aValue.c_str(), (int)aEncoding, vrc); 433 433 } 434 434
Note:
See TracChangeset
for help on using the changeset viewer.