Commit cc069067 authored by Matt Caswell's avatar Matt Caswell
Browse files

Fix an uninitialised read on an error path



Found by Coverity.

Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
parent 5105ba5b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -257,7 +257,7 @@ static int ocsp_add1_nonce(STACK_OF(X509_EXTENSION) **exts,
     */
    os.length = ASN1_object_size(0, len, V_ASN1_OCTET_STRING);
    if (os.length < 0)
        goto err;
        return 0;

    os.data = OPENSSL_malloc(os.length);
    if (os.data == NULL)