aboutsummaryrefslogtreecommitdiffstats
path: root/src/gnutls_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnutls_config.c')
-rw-r--r--src/gnutls_config.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gnutls_config.c b/src/gnutls_config.c
index 6c8d427..4bb523f 100644
--- a/src/gnutls_config.c
+++ b/src/gnutls_config.c
@@ -343,10 +343,14 @@ const char *mgs_set_cache(cmd_parms * parms, void *dummy,
343 return err; 343 return err;
344 } 344 }
345 345
346 sc->cache_type = mgs_cache_none; 346 if (strcasecmp("none", type) == 0) {
347 if (strcasecmp("dbm", type) == 0) { 347 sc->cache_type = mgs_cache_none;
348 } else if (strcasecmp("dbm", type) == 0) {
348 sc->cache_type = mgs_cache_dbm; 349 sc->cache_type = mgs_cache_dbm;
349 } 350 }
351 else if (strcasecmp("sdbm", type) == 0) {
352 sc->cache_type = mgs_cache_sdbm;
353 }
350#if HAVE_APR_MEMCACHE 354#if HAVE_APR_MEMCACHE
351 else if (strcasecmp("memcache", type) == 0) { 355 else if (strcasecmp("memcache", type) == 0) {
352 sc->cache_type = mgs_cache_memcache; 356 sc->cache_type = mgs_cache_memcache;
@@ -356,7 +360,7 @@ const char *mgs_set_cache(cmd_parms * parms, void *dummy,
356 return "Invalid Type for GnuTLSCache!"; 360 return "Invalid Type for GnuTLSCache!";
357 } 361 }
358 362
359 if (sc->cache_type == mgs_cache_dbm) { 363 if (sc->cache_type == mgs_cache_dbm || sc->cache_type == mgs_cache_sdbm) {
360 sc->cache_config = ap_server_root_relative(parms->pool, arg); 364 sc->cache_config = ap_server_root_relative(parms->pool, arg);
361 } else { 365 } else {
362 sc->cache_config = apr_pstrdup(parms->pool, arg); 366 sc->cache_config = apr_pstrdup(parms->pool, arg);