summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/asn1/a_mbstr.c4
-rw-r--r--src/lib/libssl/src/crypto/asn1/a_mbstr.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/asn1/a_mbstr.c b/src/lib/libcrypto/asn1/a_mbstr.c
index 9ce0a000fe..e715fe7348 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.21 2014/10/12 20:47:12 miod Exp $ */ 1/* $OpenBSD: a_mbstr.c,v 1.22 2015/07/16 02:18:58 miod 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 */
@@ -288,7 +288,7 @@ traverse_string(const unsigned char *p, int len, int inform,
288 len -= 2; 288 len -= 2;
289 break; 289 break;
290 case MBSTRING_UNIV: 290 case MBSTRING_UNIV:
291 value = *p++ << 24; 291 value = (unsigned long)*p++ << 24;
292 value |= *p++ << 16; 292 value |= *p++ << 16;
293 value |= *p++ << 8; 293 value |= *p++ << 8;
294 value |= *p++; 294 value |= *p++;
diff --git a/src/lib/libssl/src/crypto/asn1/a_mbstr.c b/src/lib/libssl/src/crypto/asn1/a_mbstr.c
index 9ce0a000fe..e715fe7348 100644
--- a/src/lib/libssl/src/crypto/asn1/a_mbstr.c
+++ b/src/lib/libssl/src/crypto/asn1/a_mbstr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: a_mbstr.c,v 1.21 2014/10/12 20:47:12 miod Exp $ */ 1/* $OpenBSD: a_mbstr.c,v 1.22 2015/07/16 02:18:58 miod 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 */
@@ -288,7 +288,7 @@ traverse_string(const unsigned char *p, int len, int inform,
288 len -= 2; 288 len -= 2;
289 break; 289 break;
290 case MBSTRING_UNIV: 290 case MBSTRING_UNIV:
291 value = *p++ << 24; 291 value = (unsigned long)*p++ << 24;
292 value |= *p++ << 16; 292 value |= *p++ << 16;
293 value |= *p++ << 8; 293 value |= *p++ << 8;
294 value |= *p++; 294 value |= *p++;