Commit 2bfe3208f7 for openssl.org

commit 2bfe3208f779f352caf1cf60f77e903824faa97a
Author: Bob Beck <beck@obtuse.com>
Date:   Thu Feb 5 08:37:00 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:30 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 c3e4e25fc3..8368001933 100644
--- a/crypto/x509/x509_vpm.c
+++ b/crypto/x509/x509_vpm.c
@@ -315,7 +315,7 @@ static int validate_email_name(const char *name, size_t len, int rfc822)
         goto err;

     /* Go to the last @ */
-    while ((next = memchr(at + 1, '@', len - (at - name - 1))) != NULL)
+    while ((next = memchr(at + 1, '@', len - (at - name + 1))) != NULL)
         at = next;

     /* Ensure the local part is not oversize */