Changeset 3358887 in mod_gnutls
- Timestamp:
- May 30, 2018, 2:12:49 AM (5 years ago)
- Branches:
- asyncio, debian/master, master, proxy-ticket
- Children:
- 994200a
- Parents:
- eced11a
- git-author:
- Fiona Klute <fiona.klute@…> (05/30/18 01:43:09)
- git-committer:
- Fiona Klute <fiona.klute@…> (05/30/18 02:12:49)
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gnutls_cache.c
reced11a r3358887 314 314 apr_pool_t *pconf, apr_pool_t *ptemp) 315 315 { 316 /* allocate cache structure if needed */ 317 if (*cache == NULL) 318 { 319 *cache = apr_pcalloc(pconf, sizeof(struct mgs_cache)); 320 if (*cache == NULL) 321 return "Could not allocate memory for cache configuration!"; 322 } 323 mgs_cache_t c = *cache; 316 /* Allocate cache structure, will be assigned to *cache after 317 * successful configuration. */ 318 mgs_cache_t c = apr_pcalloc(pconf, sizeof(struct mgs_cache)); 319 if (c == NULL) 320 return "Could not allocate memory for cache configuration!"; 324 321 325 322 /* Find the right socache provider */ … … 355 352 "%s: Socache '%s:%s' created.", 356 353 __func__, c->prov->name, c->config); 354 355 /* assign configured cache structure to server */ 356 *cache = c; 357 357 358 358 return NULL; -
src/gnutls_cache.h
reced11a r3358887 43 43 * is supposed to happen during post_config. 44 44 * 45 * @param cache pointer to the mgs_cache_t, memory will be allocated46 * if currently NULL.45 * @param cache pointer to the mgs_cache_t, will be assigned only if 46 * configuration succeeds 47 47 * 48 48 * @param server associated server for logging purposes … … 53 53 * `NULL` if the provider accepts an empty configuration 54 54 * 55 * @param pconf configuration memory pool 55 * @param pconf configuration memory pool, used to store cache 56 * configuration 56 57 * 57 58 * @param ptemp temporary memory pool
Note: See TracChangeset
for help on using the changeset viewer.