]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Update crypto/x509/v3_utl.c
authorBob Beck <beck@obtuse.com>
Wed, 28 Jan 2026 19:56:57 +0000 (12:56 -0700)
committerNeil Horman <nhorman@openssl.org>
Tue, 24 Feb 2026 14:03:39 +0000 (09:03 -0500)
Co-authored-by: Viktor Dukhovni <viktor1ghub@dukhovni.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
MergeDate: Tue Feb 24 14:03:47 2026
(Merged from https://github.com/openssl/openssl/pull/29612)

crypto/x509/v3_utl.c

index 32848026525ce7c5e64e9953f23cece8f795602b..ff17565317c69747c335161a5a5d09feb1947320 100644 (file)
@@ -944,7 +944,7 @@ static int do_x509_check(X509 *x, const char *chk, size_t chklen,
                      * choose to turn it off, doing so is at this time a best
                      * practice.
                      */
-                    if (check_nid != NID_id_on_SmtpUTF8Mailbox
+                    if (othername_nid != NID_id_on_SmtpUTF8Mailbox
                         || gen->d.otherName->value->type != V_ASN1_UTF8STRING)
                         continue;
                     alt_type = 0;