projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix a crash in the asn1parse command
[oweals/openssl.git]
/
apps
/
ca.c
diff --git
a/apps/ca.c
b/apps/ca.c
index 2490710a5674d9714922a01bd60f8b086b1451f9..4f9de5492148a180333f81ade80d36e8498ac3c0 100644
(file)
--- a/
apps/ca.c
+++ b/
apps/ca.c
@@
-2155,11
+2155,11
@@
static int do_body(X509 **xret, EVP_PKEY *pkey, X509 *x509,
irow = NULL;
ok = 1;
err:
- if (
irow != NULL
) {
+ if (
ok != 1
) {
for (i = 0; i < DB_NUMBER; i++)
OPENSSL_free(row[i]);
- OPENSSL_free(irow);
}
+ OPENSSL_free(irow);
if (CAname != NULL)
X509_NAME_free(CAname);