projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16e1eea
)
Remove an unnecessary cast in the param to BUF_MEM_grow
author
Bernd Edlinger
<bernd.edlinger@hotmail.de>
Mon, 2 Apr 2018 08:35:29 +0000
(10:35 +0200)
committer
Bernd Edlinger
<bernd.edlinger@hotmail.de>
Tue, 3 Apr 2018 14:02:17 +0000
(16:02 +0200)
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/5826)
apps/asn1pars.c
patch
|
blob
|
history
diff --git
a/apps/asn1pars.c
b/apps/asn1pars.c
index 062e19644e0b8f9741cfffe42e952c56f9c3ae2c..f1756c1fdba56c031a9a0febe3288a1a99041cd1 100644
(file)
--- 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)