]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix coverity CID #1465795 - Incorrect free deallocator used in SSL_add1_host()
authorShane Lontis <shane.lontis@oracle.com>
Tue, 11 Aug 2020 05:21:30 +0000 (15:21 +1000)
committerShane 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

index c72341547afd47d0492d355fcdd778fc534b7b14..ad1cfb4f40fa3d9cce2b9503f45c8c98ee07ba4d 100644 (file)
@@ -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;
             }