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:
a45dca6
)
Avoid a double-free in crl2pl7
author
Matt Caswell
<matt@openssl.org>
Tue, 14 Jun 2016 10:27:10 +0000
(11:27 +0100)
committer
Matt Caswell
<matt@openssl.org>
Tue, 14 Jun 2016 10:27:10 +0000
(11:27 +0100)
The variable |crtflst| could get double freed in an error path.
Reviewed-by: Richard Levitte <levitte@openssl.org>
apps/crl2p7.c
patch
|
blob
|
history
diff --git
a/apps/crl2p7.c
b/apps/crl2p7.c
index 1631258793ec96ae5d653be3b6ebb7bfa7f3c26d..9c5f79f9f37988d0db709eda6eeaf82d44a1044a 100644
(file)
--- a/
apps/crl2p7.c
+++ b/
apps/crl2p7.c
@@
-84,10
+84,8
@@
int crl2pkcs7_main(int argc, char **argv)
if ((certflst == NULL)
&& (certflst = sk_OPENSSL_STRING_new_null()) == NULL)
goto end;
- if (!sk_OPENSSL_STRING_push(certflst, opt_arg())) {
- sk_OPENSSL_STRING_free(certflst);
+ if (!sk_OPENSSL_STRING_push(certflst, opt_arg()))
goto end;
- }
break;
}
}