Commit c4210673 authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

Fix omitted selector handling.



The selector field could be omitted because it has a DEFAULT value.
In this case *sfld == NULL (sfld can never be NULL). This was not
noticed because this was never used in existing ASN.1 modules.

Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
(cherry picked from commit 7c46746b)
parent 32957936
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -234,7 +234,7 @@ const ASN1_TEMPLATE *asn1_do_adb(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt,
    sfld = offset2ptr(*pval, adb->offset);

    /* Check if NULL */
    if (!sfld) {
    if (*sfld == NULL) {
        if (!adb->null_tt)
            goto err;
        return adb->null_tt;