diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/f_int.c')
| -rw-r--r-- | src/lib/libcrypto/asn1/f_int.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/f_int.c b/src/lib/libcrypto/asn1/f_int.c index 9849a7c8fc..d03fafe87d 100644 --- a/src/lib/libcrypto/asn1/f_int.c +++ b/src/lib/libcrypto/asn1/f_int.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: f_int.c,v 1.19 2018/04/25 11:48:21 tb Exp $ */ | 1 | /* $OpenBSD: f_int.c,v 1.20 2018/05/13 13:48:08 jsing 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,8 +158,7 @@ a2i_ASN1_INTEGER(BIO *bp, ASN1_INTEGER *bs, char *buf, int size) | |||
| 158 | } | 158 | } |
| 159 | i /= 2; | 159 | i /= 2; |
| 160 | if (num + i > slen) { | 160 | if (num + i > slen) { |
| 161 | sp = OPENSSL_realloc_clean(s, slen, num + i); | 161 | if ((sp = recallocarray(s, slen, num + i, 1)) == NULL) { |
| 162 | if (sp == NULL) { | ||
| 163 | ASN1error(ERR_R_MALLOC_FAILURE); | 162 | ASN1error(ERR_R_MALLOC_FAILURE); |
| 164 | goto err; | 163 | goto err; |
| 165 | } | 164 | } |
