Changeset 98046 in vbox
- Timestamp:
- Jan 11, 2023 12:24:05 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImplTeleporter.cpp
r97815 r98046 1291 1291 1292 1292 /* 1293 * Password (includes '\n', see teleporterTrg).1293 * Password (includes '\n', see i_teleporterTrg). 1294 1294 */ 1295 1295 const char *pszPassword = pState->mstrPassword.c_str(); … … 1305 1305 LogRel(("Teleporter: Password read failure (off=%u): %Rrc\n", off, vrc)); 1306 1306 else 1307 LogRel(("Teleporter: Invalid password (off=%u)\n", off)); 1307 { 1308 /* Must read the whole password before NACK'ing it. */ 1309 size_t const cchMaxRead = RT_ALIGN_Z(pState->mstrPassword.length() * 3, _1K); 1310 while (off < cchMaxRead && RT_SUCCESS(vrc) && ch != '\n') 1311 { 1312 vrc = RTTcpRead(hSocket, &ch, sizeof(ch), NULL); 1313 off++; 1314 } 1315 LogRel(("Teleporter: Invalid password\n")); 1316 } 1317 RTThreadSleep(RTRandU32Ex(64, 1024)); /* stagger retries */ 1308 1318 teleporterTcpWriteNACK(pState, VERR_AUTHENTICATION_FAILURE); 1309 1319 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.