summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/a_mbstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/asn1/a_mbstr.c')
-rw-r--r--src/lib/libcrypto/asn1/a_mbstr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/a_mbstr.c b/src/lib/libcrypto/asn1/a_mbstr.c
index 06b674ef41..32b39ad5db 100644
--- a/src/lib/libcrypto/asn1/a_mbstr.c
+++ b/src/lib/libcrypto/asn1/a_mbstr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: a_mbstr.c,v 1.25 2022/11/26 16:08:50 tb Exp $ */ 1/* $OpenBSD: a_mbstr.c,v 1.26 2022/12/26 07:18:51 jmc Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 1999. 3 * project 1999.
4 */ 4 */
@@ -276,7 +276,7 @@ traverse_string(const unsigned char *p, int len, int inform,
276 case MBSTRING_BMP: 276 case MBSTRING_BMP:
277 value = *p++ << 8; 277 value = *p++ << 8;
278 value |= *p++; 278 value |= *p++;
279 /* BMP is explictly defined to not support surrogates */ 279 /* BMP is explicitly defined to not support surrogates */
280 if (UNICODE_IS_SURROGATE(value)) 280 if (UNICODE_IS_SURROGATE(value))
281 return -1; 281 return -1;
282 len -= 2; 282 len -= 2;