From f2bfc53b02fd4cf328cf6200452b86adfdc15489 Mon Sep 17 00:00:00 2001 From: Shane Lontis Date: Tue, 11 Aug 2020 15:21:30 +1000 Subject: [PATCH] Fix coverity CID #1465795 - Incorrect free deallocator used in SSL_add1_host() Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/12628) --- ssl/ssl_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index c72341547a..ad1cfb4f40 100644 --- 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; } -- 2.34.1