From: Bob Beck Date: Thu, 5 Feb 2026 15:37:00 +0000 (-0700) Subject: Update crypto/x509/x509_vpm.c X-Git-Tag: openssl-4.0.0-alpha1~176 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2bfe3208f779f352caf1cf60f77e903824faa97a;p=thirdparty%2Fopenssl.git Update crypto/x509/x509_vpm.c Co-authored-by: Viktor Dukhovni Reviewed-by: Neil Horman Reviewed-by: Viktor Dukhovni 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 c3e4e25fc32..83680019338 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 */