Commit c91ec013 authored by Benjamin Kaduk's avatar Benjamin Kaduk Committed by Benjamin Kaduk
Browse files

Fix return-value checks in OCSP_resp_get1_id()



Commit db17e43d added the function
but would improperly report success if the underlying dup operation
failed.

Reviewed-by: default avatarMatt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3775)
parent 0ffdaebf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -230,7 +230,7 @@ int OCSP_resp_get1_id(const OCSP_BASICRESP *bs,
    } else {
        return 0;
    }
    if (pname == NULL && pid == NULL)
    if (*pname == NULL && *pid == NULL)
        return 0;
    return 1;
}