artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54292de
)
Avoid leak with X509_REVOKED variable in openssl(1) ca.c
author
inoguchi
<inoguchi@openbsd.org>
Sat, 28 Aug 2021 02:24:10 +0000
(
02:24
+0000)
committer
inoguchi
<inoguchi@openbsd.org>
Sat, 28 Aug 2021 02:24:10 +0000
(
02:24
+0000)
pointed out by tb@
usr.bin/openssl/ca.c
patch
|
blob
|
history
diff --git
a/usr.bin/openssl/ca.c
b/usr.bin/openssl/ca.c
index
dbdd43c
..
329750e
100644
(file)
--- a/
usr.bin/openssl/ca.c
+++ b/
usr.bin/openssl/ca.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: ca.c,v 1.3
6 2021/08/28 02:11:18
inoguchi Exp $ */
+/* $OpenBSD: ca.c,v 1.3
7 2021/08/28 02:24:10
inoguchi Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@
-1473,6
+1473,7
@@
ca_main(int argc, char **argv)
ASN1_INTEGER_free(tmpserial);
if (!X509_CRL_add0_revoked(crl, r))
goto err;
+ r = NULL;
}
}
@@
-1589,6
+1590,7
@@
ca_main(int argc, char **argv)
if (x509)
X509_free(x509);
X509_CRL_free(crl);
+ X509_REVOKED_free(r);
NCONF_free(conf);
NCONF_free(extconf);
OBJ_cleanup();