From: Bernd Edlinger Date: Mon, 2 Apr 2018 08:35:29 +0000 (+0200) Subject: Remove an unnecessary cast in the param to BUF_MEM_grow X-Git-Tag: OpenSSL_1_1_1-pre5~78 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21db0e1afdcf17a189ebe49af3506551b108a2f2;p=thirdparty%2Fopenssl.git Remove an unnecessary cast in the param to BUF_MEM_grow Reviewed-by: Rich Salz Reviewed-by: Matthias St. Pierre (Merged from https://github.com/openssl/openssl/pull/5826) --- diff --git a/apps/asn1pars.c b/apps/asn1pars.c index 062e19644e0..f1756c1fdba 100644 --- a/apps/asn1pars.c +++ b/apps/asn1pars.c @@ -205,7 +205,7 @@ int asn1parse_main(int argc, char **argv) num = 0; for (;;) { - if (!BUF_MEM_grow(buf, (int)num + BUFSIZ)) + if (!BUF_MEM_grow(buf, num + BUFSIZ)) goto end; i = BIO_read(in, &(buf->data[num]), BUFSIZ); if (i <= 0)