Changeset ce5f776 in mod_gnutls for src/gnutls_config.c
- Timestamp:
- May 2, 2018, 2:30:26 PM (3 years ago)
- Branches:
- asyncio, debian/master, master, proxy-ticket
- Children:
- eaa8a9d
- Parents:
- 5ab2868
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gnutls_config.c
r5ab2868 rce5f776 18 18 */ 19 19 20 #include "gnutls_cache.h" 20 21 #include "gnutls_config.h" 21 22 #include "mod_gnutls.h" … … 595 596 { 596 597 sc->cache_enable = GNUTLS_ENABLED_FALSE; 597 sc->cache_type = NULL;598 sc->cache_config = NULL;599 598 return NULL; 600 599 } … … 606 605 if (sep) 607 606 { 608 sc->cache_type = apr_pstrmemdup(parms->pool, type, sep - type);607 type = apr_pstrmemdup(parms->temp_pool, type, sep - type); 609 608 if (arg != NULL) 610 609 { … … 615 614 arg = ++sep; 616 615 } 617 else 618 sc->cache_type = apr_pstrdup(parms->pool, type); 619 620 if (arg == NULL) 621 sc->cache_config = ""; 622 else 623 sc->cache_config = apr_pstrdup(parms->pool, arg); 624 625 return NULL; 616 617 return mgs_cache_inst_config(&sc->cache, parms->server, 618 type, arg, 619 parms->pool, parms->temp_pool); 626 620 } 627 621 … … 860 854 sc->priorities_str = NULL; 861 855 sc->cache_timeout = MGS_TIMEOUT_UNSET; 862 sc->cache_type = NULL;863 856 sc->cache_enable = GNUTLS_ENABLED_UNSET; 864 sc->cache_config = NULL;865 857 sc->cache = NULL; 866 858 sc->tickets = GNUTLS_ENABLED_UNSET;
Note: See TracChangeset
for help on using the changeset viewer.