summaryrefslogtreecommitdiff
path: root/lib/libcrypto/asn1/tasn_dec.c
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2022-04-26 20:00:19 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2022-04-26 20:00:19 +0000
commit61243df8ded73b472cdddc5fa5ba5c95f1f0defb (patch)
tree664d37a35a1e996424add1173f171acd39e7dd9f /lib/libcrypto/asn1/tasn_dec.c
parent7f6b526b8b58a5d6f75781dd39597263e6726fc7 (diff)
Decode via c2i_ASN1_BIT_STRING_cbs() from asn1_ex_c2i().
ok inoguchi@ tb@
Diffstat (limited to 'lib/libcrypto/asn1/tasn_dec.c')
-rw-r--r--lib/libcrypto/asn1/tasn_dec.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libcrypto/asn1/tasn_dec.c b/lib/libcrypto/asn1/tasn_dec.c
index 76dceaabef8..5c688344610 100644
--- a/lib/libcrypto/asn1/tasn_dec.c
+++ b/lib/libcrypto/asn1/tasn_dec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tasn_dec.c,v 1.50 2022/04/23 18:47:08 jsing Exp $ */
+/* $OpenBSD: tasn_dec.c,v 1.51 2022/04/26 20:00:18 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2000.
*/
@@ -856,9 +856,7 @@ asn1_ex_c2i(ASN1_VALUE **pval, CBS *content, int utype, const ASN1_ITEM *it)
break;
case V_ASN1_BIT_STRING:
- p = CBS_data(content);
- if (!c2i_ASN1_BIT_STRING((ASN1_BIT_STRING **)pval, &p,
- CBS_len(content)))
+ if (!c2i_ASN1_BIT_STRING_cbs((ASN1_BIT_STRING **)pval, content))
goto err;
break;