VirtualBox

Changeset 74342 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Sep 18, 2018 2:16:15 PM (6 years ago)
Author:
vboxsync
Message:

IPRT/ssl: avoid asserting in RTFileExists. bugref:9246

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/crypto/ssl-openssl.cpp

    r74340 r74342  
    187187    if (rcOssl != 0)
    188188        return VINF_SUCCESS;
    189     return !RTFileExists(pszFile) ? VERR_FILE_NOT_FOUND : VERR_OPEN_FAILED; /** @todo Better status codes */
     189    return !pszFile || !*pszFile || !RTFileExists(pszFile) ? VERR_FILE_NOT_FOUND : VERR_OPEN_FAILED; /** @todo Better status codes */
    190190}
    191191
     
    202202    if (rcOssl != 0)
    203203        return VINF_SUCCESS;
    204     return !RTFileExists(pszFile) ? VERR_FILE_NOT_FOUND : VERR_OPEN_FAILED; /** @todo Better status codes */
     204    return !pszFile || !*pszFile || !RTFileExists(pszFile) ? VERR_FILE_NOT_FOUND : VERR_OPEN_FAILED; /** @todo Better status codes */
    205205}
    206206
     
    216216        return VINF_SUCCESS;
    217217
    218     if (pszFile && !RTFileExists(pszFile))
     218    if (!pszFile || !*pszFile || !RTFileExists(pszFile))
    219219        return VERR_FILE_NOT_FOUND;
    220220    return VERR_OPEN_FAILED; /** @todo Better status codes */
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