diff options
-rw-r--r-- | src/lib/libcrypto/asn1/a_bitstr.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/a_bitstr.c b/src/lib/libcrypto/asn1/a_bitstr.c index 7fd40d8a8c..f217f13d27 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.29 2018/10/20 16:07:09 tb Exp $ */ | 1 | /* $OpenBSD: a_bitstr.c,v 1.30 2020/09/03 17:19:27 tb 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 | * |
@@ -215,8 +215,6 @@ ASN1_BIT_STRING_set_bit(ASN1_BIT_STRING *a, int n, int value) | |||
215 | ASN1error(ERR_R_MALLOC_FAILURE); | 215 | ASN1error(ERR_R_MALLOC_FAILURE); |
216 | return 0; | 216 | return 0; |
217 | } | 217 | } |
218 | if (w + 1 - a->length > 0) | ||
219 | memset(c + a->length, 0, w + 1 - a->length); | ||
220 | a->data = c; | 218 | a->data = c; |
221 | a->length = w + 1; | 219 | a->length = w + 1; |
222 | } | 220 | } |