projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6009997
)
Clear unused variables in X509_print_ex()
author
zhouzilong
<zhouzilong@uniontech.com>
Mon, 25 Apr 2022 06:40:24 +0000
(14:40 +0800)
committer
Tomas Mraz
<tomas@openssl.org>
Tue, 26 Apr 2022 14:32:15 +0000
(16:32 +0200)
CLA: trivial
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18167)
crypto/x509/t_x509.c
patch
|
blob
|
history
diff --git
a/crypto/x509/t_x509.c
b/crypto/x509/t_x509.c
index 3e022ccbcb220ab3e1f005558a633b1903a1ec37..73f6489cac69727d2ebdb1601956c4b2face11fb 100644
(file)
--- a/
crypto/x509/t_x509.c
+++ b/
crypto/x509/t_x509.c
@@
-55,7
+55,7
@@
int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags,
{
long l;
int ret = 0, i;
- char
*m = NULL,
mlch = ' ';
+ char mlch = ' ';
int nmindent = 0, printok = 0;
EVP_PKEY *pkey = NULL;
const char *neg;
@@
-222,7
+222,6
@@
int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags,
}
ret = 1;
err:
- OPENSSL_free(m);
return ret;
}