VirtualBox

Changeset 23707 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Oct 12, 2009 5:26:38 PM (15 years ago)
Author:
vboxsync
Message:

Main/LiveMigration: Bug fixes for the welcome message check.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl-LiveMigration.cpp

    r23703 r23707  
    543543    /* Read and check the welcome message. */
    544544    char szLine[RT_MAX(128, sizeof(g_szWelcome))];
     545    RT_ZERO(szLine);
    545546    vrc = RTTcpRead(pState->mhSocket, szLine, sizeof(g_szWelcome) - 1, NULL);
    546547    if (RT_FAILURE(vrc))
    547548        return setError(E_FAIL, tr("Failed to read welcome message: %Rrc"), vrc);
    548549    if (strcmp(szLine, g_szWelcome))
    549         return setError(E_FAIL, tr("Unexpected welcome '%s'"), szLine);
     550        return setError(E_FAIL, tr("Unexpected welcome %.*Rhxs"), sizeof(g_szWelcome) - 1, szLine);
    550551
    551552    /* password */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette