]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MEDIUM: ssl: potential memory leak using verifyhost
authorEmeric Brun <ebrun@exceliance.fr>
Tue, 17 Sep 2013 13:19:54 +0000 (15:19 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 17 Sep 2013 21:19:27 +0000 (23:19 +0200)
If server certificate presents dns aliases, a memory leak appears
on health checks when 'verifyhost' statement is used.

src/ssl_sock.c

index a55a5bf4ce5b040ae6aec4e89a47891ec1be9378..4ae27fc30487e17666e35e9d33bd80416a5b40d5 100644 (file)
@@ -861,6 +861,7 @@ static int ssl_sock_srv_verifycbk(int ok, X509_STORE_CTX *ctx)
                                }
                        }
                }
+               sk_GENERAL_NAME_pop_free(alt_names, GENERAL_NAME_free);
        }
 
        cert_subject = X509_get_subject_name(cert);