Commit 7c46746b 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>
parent 2dca984b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -189,7 +189,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;