mirror of
https://github.com/apache/httpd.git
synced 2025-08-07 04:02:58 +03:00
Adapt to changed declaration of apr_pool_sub_make()
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89871 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -76,7 +76,8 @@ ssl_ds_array *ssl_ds_array_make(apr_pool_t *p, int size)
|
|||||||
if ((a = (ssl_ds_array *)apr_palloc(p, sizeof(ssl_ds_array))) == NULL)
|
if ((a = (ssl_ds_array *)apr_palloc(p, sizeof(ssl_ds_array))) == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
a->pPool = p;
|
a->pPool = p;
|
||||||
if ((a->pSubPool = apr_pool_sub_make(p, NULL)) == NULL)
|
apr_pool_sub_make(&a->pSubPool, p, NULL);
|
||||||
|
if (a->pSubPool == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
a->aData = apr_array_make(a->pSubPool, 2, size);
|
a->aData = apr_array_make(a->pSubPool, 2, size);
|
||||||
return a;
|
return a;
|
||||||
@@ -130,7 +131,8 @@ ssl_ds_table *ssl_ds_table_make(apr_pool_t *p, int size)
|
|||||||
if ((t = (ssl_ds_table *)apr_palloc(p, sizeof(ssl_ds_table))) == NULL)
|
if ((t = (ssl_ds_table *)apr_palloc(p, sizeof(ssl_ds_table))) == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
t->pPool = p;
|
t->pPool = p;
|
||||||
if ((t->pSubPool = apr_pool_sub_make(p, NULL)) == NULL)
|
apr_pool_sub_make(&t->pSubPool, p, NULL);
|
||||||
|
if (t->pSubPool == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
t->aKey = apr_array_make(t->pSubPool, 2, MAX_STRING_LEN);
|
t->aKey = apr_array_make(t->pSubPool, 2, MAX_STRING_LEN);
|
||||||
t->aData = apr_array_make(t->pSubPool, 2, size);
|
t->aData = apr_array_make(t->pSubPool, 2, size);
|
||||||
|
@@ -904,7 +904,7 @@ STACK_OF(X509_NAME) *ssl_init_FindCAList(server_rec *s, apr_pool_t *pp, char *cp
|
|||||||
* is remains in memory for the complete operation time of
|
* is remains in memory for the complete operation time of
|
||||||
* the server.
|
* the server.
|
||||||
*/
|
*/
|
||||||
p = apr_pool_sub_make(pp, NULL);
|
apr_pool_sub_make(&p, pp, NULL);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Start with a empty stack/list where new
|
* Start with a empty stack/list where new
|
||||||
|
@@ -116,7 +116,8 @@ void ssl_scache_dbm_kill(server_rec *s)
|
|||||||
SSLModConfigRec *mc = myModConfig(s);
|
SSLModConfigRec *mc = myModConfig(s);
|
||||||
apr_pool_t *p;
|
apr_pool_t *p;
|
||||||
|
|
||||||
if ((p = apr_pool_sub_make(mc->pPool, NULL)) != NULL) {
|
apr_pool_sub_make(&p, mc->pPool, NULL)
|
||||||
|
if (p != NULL) {
|
||||||
/* the correct way */
|
/* the correct way */
|
||||||
unlink(apr_pstrcat(p, mc->szSessionCacheDataFile, SSL_DBM_FILE_SUFFIX_DIR, NULL));
|
unlink(apr_pstrcat(p, mc->szSessionCacheDataFile, SSL_DBM_FILE_SUFFIX_DIR, NULL));
|
||||||
unlink(apr_pstrcat(p, mc->szSessionCacheDataFile, SSL_DBM_FILE_SUFFIX_PAG, NULL));
|
unlink(apr_pstrcat(p, mc->szSessionCacheDataFile, SSL_DBM_FILE_SUFFIX_PAG, NULL));
|
||||||
@@ -328,7 +329,8 @@ void ssl_scache_dbm_expire(server_rec *s)
|
|||||||
ssl_mutex_on(s);
|
ssl_mutex_on(s);
|
||||||
for (;;) {
|
for (;;) {
|
||||||
/* allocate the key array in a memory sub pool */
|
/* allocate the key array in a memory sub pool */
|
||||||
if ((p = apr_pool_sub_make(mc->pPool, NULL)) == NULL)
|
apr_pool_sub_make(&p, mc->pPool, NULL)
|
||||||
|
if (p == NULL)
|
||||||
break;
|
break;
|
||||||
if ((keylist = apr_palloc(p, sizeof(dbmkey)*KEYMAX)) == NULL) {
|
if ((keylist = apr_palloc(p, sizeof(dbmkey)*KEYMAX)) == NULL) {
|
||||||
apr_pool_destroy(p);
|
apr_pool_destroy(p);
|
||||||
|
@@ -420,7 +420,7 @@ BOOL SSL_load_CrtAndKeyInfo_path(apr_pool_t *p, STACK_OF(X509_INFO) *sk, char *p
|
|||||||
char *fullname;
|
char *fullname;
|
||||||
BOOL ok;
|
BOOL ok;
|
||||||
|
|
||||||
sp = apr_pool_sub_make(p, NULL);
|
apr_pool_sub_make(&sp, p, NULL);
|
||||||
if (apr_dir_open(&dir, pathname, sp)) != APR_SUCCESS) {
|
if (apr_dir_open(&dir, pathname, sp)) != APR_SUCCESS) {
|
||||||
apr_pool_destroy(sp);
|
apr_pool_destroy(sp);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@@ -207,7 +207,7 @@ static unsigned iterate_pieces(request_rec *r, const test_uri_t *pieces, int row
|
|||||||
}
|
}
|
||||||
*strp = 0;
|
*strp = 0;
|
||||||
|
|
||||||
sub = apr_pool_sub_make(r->pool);
|
apr_pool_sub_make(&sub, r->pool, NULL);
|
||||||
status = apr_uri_parse_components(sub, input_uri, &result);
|
status = apr_uri_parse_components(sub, input_uri, &result);
|
||||||
if (status == APR_SUCCESS) {
|
if (status == APR_SUCCESS) {
|
||||||
#define CHECK(f) \
|
#define CHECK(f) \
|
||||||
|
Reference in New Issue
Block a user