Commit c2ac33593b for openssl.org
commit c2ac33593b84689aa5ac1f4d939be8995b534e1b
Author: Bob Beck <beck@openssl.org>
Date: Wed Feb 18 09:48:04 2026 -0700
Fix up bug found by nhorman on review. Thanks!
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
MergeDate: Tue Feb 24 14:04:42 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 3b0a1f0122..ddf1a923fc 100644
--- a/crypto/x509/x509_vpm.c
+++ b/crypto/x509/x509_vpm.c
@@ -198,6 +198,7 @@ static int validate_string_name(const char *name, size_t *name_len)
if (memchr(name, '\0', len) != NULL)
return 0;
+ *name_len = len;
return 1;
}