VirtualBox

Changeset 103435 in vbox for trunk/src/VBox/Storage/VISO.cpp


Ignore:
Timestamp:
Feb 19, 2024 12:45:14 PM (10 months ago)
Author:
vboxsync
Message:

Storage/{VISO.cpp,ISCSI.cpp}: Verify that there is a config interface before using it, bugref:3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/VISO.cpp

    r98103 r103435  
    674674        if (fDelete)
    675675        {
    676                 PVDINTERFACECONFIG pImgCfg = VDIfConfigGet(&pThis->pIfIo->Core);
    677 
     676            PVDINTERFACECONFIG pImgCfg = VDIfConfigGet(&pThis->pIfIo->Core);
     677            if (pImgCfg)
     678            {
    678679                bool fUnattendedInstall = false;
    679680                int vrc = VDCFGQueryBool(pImgCfg, "UnattendedInstall", &fUnattendedInstall);
     
    686687                if (RT_SUCCESS(vrc) && fUnattendedInstall)
    687688                    deleteReferences(pThis);
     689            }
     690
    688691            vdIfIoIntFileDelete(pThis->pIfIo, pThis->pszFilename);
    689692        }
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