mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
free memory when needed
bz #65905 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1898410 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1846,6 +1846,7 @@ static apr_status_t ssl_init_proxy_certs(server_rec *s,
|
|||||||
ap_log_error(APLOG_MARK, APLOG_EMERG, 0, s, APLOGNO(02208)
|
ap_log_error(APLOG_MARK, APLOG_EMERG, 0, s, APLOGNO(02208)
|
||||||
"SSL proxy client cert initialization failed");
|
"SSL proxy client cert initialization failed");
|
||||||
ssl_log_ssl_error(SSLLOG_MARK, APLOG_EMERG, s);
|
ssl_log_ssl_error(SSLLOG_MARK, APLOG_EMERG, s);
|
||||||
|
sk_X509_INFO_free(sk);
|
||||||
return ssl_die(s);
|
return ssl_die(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1855,7 +1856,11 @@ static apr_status_t ssl_init_proxy_certs(server_rec *s,
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
X509_INFO *inf = sk_X509_INFO_value(pkp->certs, n);
|
X509_INFO *inf = sk_X509_INFO_value(pkp->certs, n);
|
||||||
X509_STORE_CTX_init(sctx, store, inf->x509, NULL);
|
if (!X509_STORE_CTX_init(sctx, store, inf->x509, NULL)) {
|
||||||
|
sk_X509_INFO_free(sk);
|
||||||
|
X509_STORE_CTX_free(sctx);
|
||||||
|
return ssl_die(s);
|
||||||
|
}
|
||||||
|
|
||||||
/* Attempt to verify the client cert */
|
/* Attempt to verify the client cert */
|
||||||
if (X509_verify_cert(sctx) != 1) {
|
if (X509_verify_cert(sctx) != 1) {
|
||||||
|
Reference in New Issue
Block a user