]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Update crypto/x509/x509_vpm.c
authorBob Beck <beck@obtuse.com>
Thu, 5 Feb 2026 15:37:42 +0000 (08:37 -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:04:35 2026
(Merged from https://github.com/openssl/openssl/pull/29612)

crypto/x509/x509_vpm.c

index 836800193387db5207d7a787da1d25ab87e79b4e..3b0a1f0122764bd36d3b051b4280721014b6c370 100644 (file)
@@ -261,7 +261,7 @@ static int validate_hostname_part(const char *name, size_t len,
             part_len = 0;
         } else {
             /* Can not start a label with a - */
-            if (part_len == 0 && c == '_') {
+            if (part_len == 0 && c == '-') {
                 return 0;
             }
             if (!is_label_ok(c, charset) && c != '-')