VirtualBox

Changeset 42212 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 18, 2012 3:17:34 PM (13 years ago)
Author:
vboxsync
Message:

Main: fixed wrong access

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp

    r42210 r42212  
    20412041{
    20422042    storeSettingsKey(aValue);
    2043     int vrc = decryptSettings();
    2044     return RT_SUCCESS(vrc) ? S_OK : E_FAIL;
     2043    decryptSettings();
     2044    return S_OK;
    20452045}
    20462046
     
    20522052    if (SUCCEEDED(hrc))
    20532053    {
    2054         Bstr bstrName;
    2055         pMedium->COMGETTER(Name)(bstrName.asOutParam());
    20562054        Utf8Str strPlaintext;
    20572055        int rc = decryptSetting(&strPlaintext, bstrCipher);
     
    21812179    {
    21822180        RTRandBytes(aBytes, aCiphertextSize - i);
    2183         for (; i < aCiphertextSize; i++)
    2184         {
    2185             aCiphertext[i] = aBytes[i] ^ m->SettingsCipherKey[j];
     2181        for (int k = 0; i < aCiphertextSize; i++, k++)
     2182        {
     2183            aCiphertext[i] = aBytes[k] ^ m->SettingsCipherKey[j];
    21862184            if (++j >= sizeof(m->SettingsCipherKey))
    21872185                j = 0;
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