summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/a_bitstr.c
diff options
context:
space:
mode:
authortedu <>2014-07-10 11:25:13 +0000
committertedu <>2014-07-10 11:25:13 +0000
commit9d3143ff6ad17d4edec6f49bea7bcdf7794f64a5 (patch)
tree7e6c9ca704304f6f99e87e8dac39a6d87504a1c5 /src/lib/libcrypto/asn1/a_bitstr.c
parent61a4bd4a18867aecea2b5f0da267ba17f1f102ea (diff)
downloadopenbsd-9d3143ff6ad17d4edec6f49bea7bcdf7794f64a5.tar.gz
openbsd-9d3143ff6ad17d4edec6f49bea7bcdf7794f64a5.tar.bz2
openbsd-9d3143ff6ad17d4edec6f49bea7bcdf7794f64a5.zip
delete some casts. ok miod
Diffstat (limited to 'src/lib/libcrypto/asn1/a_bitstr.c')
-rw-r--r--src/lib/libcrypto/asn1/a_bitstr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/a_bitstr.c b/src/lib/libcrypto/asn1/a_bitstr.c
index bd5ae715d4..16228eb40b 100644
--- a/src/lib/libcrypto/asn1/a_bitstr.c
+++ b/src/lib/libcrypto/asn1/a_bitstr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: a_bitstr.c,v 1.17 2014/06/12 15:49:27 deraadt Exp $ */ 1/* $OpenBSD: a_bitstr.c,v 1.18 2014/07/10 11:25:13 tedu Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -158,7 +158,7 @@ c2i_ASN1_BIT_STRING(ASN1_BIT_STRING **a, const unsigned char **pp, long len)
158 i = ERR_R_MALLOC_FAILURE; 158 i = ERR_R_MALLOC_FAILURE;
159 goto err; 159 goto err;
160 } 160 }
161 memcpy(s, p, (int)len); 161 memcpy(s, p, len);
162 s[len - 1] &= (0xff << i); 162 s[len - 1] &= (0xff << i);
163 p += len; 163 p += len;
164 } else 164 } else