projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90e0e0d
)
Fix coverity CID #1465795 - Incorrect free deallocator used in SSL_add1_host()
author
Shane Lontis
<shane.lontis@oracle.com>
Tue, 11 Aug 2020 05:21:30 +0000
(15:21 +1000)
committer
Shane Lontis
<shane.lontis@oracle.com>
Mon, 24 Aug 2020 01:19:28 +0000
(11:19 +1000)
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/12628)
ssl/ssl_lib.c
patch
|
blob
|
history
diff --git
a/ssl/ssl_lib.c
b/ssl/ssl_lib.c
index c72341547afd47d0492d355fcdd778fc534b7b14..ad1cfb4f40fa3d9cce2b9503f45c8c98ee07ba4d 100644
(file)
--- a/
ssl/ssl_lib.c
+++ b/
ssl/ssl_lib.c
@@
-981,7
+981,7
@@
int SSL_add1_host(SSL *s, const char *hostname)
old_ip = X509_VERIFY_PARAM_get1_ip_asc(s->param);
if (old_ip)
{
- free(old_ip);
+
OPENSSL_
free(old_ip);
/* There can be only one IP address */
return 0;
}