Commit 27c995fe4b for openssl.org

commit 27c995fe4bbc92c0d48160063572ea13a603f8be
Author: Bob Beck <beck@obtuse.com>
Date:   Thu Feb 5 08:37:42 2026 -0700

    Update crypto/x509/x509_vpm.c

    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)

diff --git a/crypto/x509/x509_vpm.c b/crypto/x509/x509_vpm.c
index 8368001933..3b0a1f0122 100644
--- a/crypto/x509/x509_vpm.c
+++ b/crypto/x509/x509_vpm.c
@@ -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 != '-')