diff options
Diffstat (limited to 'src/gnutls_config.c')
-rw-r--r-- | src/gnutls_config.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gnutls_config.c b/src/gnutls_config.c index fc3e166..517dbfb 100644 --- a/src/gnutls_config.c +++ b/src/gnutls_config.c | |||
@@ -370,6 +370,8 @@ const char *mgs_set_cache(cmd_parms * parms, void *dummy, | |||
370 | 370 | ||
371 | if (strcasecmp("none", type) == 0) { | 371 | if (strcasecmp("none", type) == 0) { |
372 | sc->cache_type = mgs_cache_none; | 372 | sc->cache_type = mgs_cache_none; |
373 | sc->cache_config = NULL; | ||
374 | return NULL; | ||
373 | } else if (strcasecmp("dbm", type) == 0) { | 375 | } else if (strcasecmp("dbm", type) == 0) { |
374 | sc->cache_type = mgs_cache_dbm; | 376 | sc->cache_type = mgs_cache_dbm; |
375 | } else if (strcasecmp("gdbm", type) == 0) { | 377 | } else if (strcasecmp("gdbm", type) == 0) { |
@@ -383,6 +385,9 @@ const char *mgs_set_cache(cmd_parms * parms, void *dummy, | |||
383 | else { | 385 | else { |
384 | return "Invalid Type for GnuTLSCache!"; | 386 | return "Invalid Type for GnuTLSCache!"; |
385 | } | 387 | } |
388 | |||
389 | if (arg == NULL) | ||
390 | return "Invalid argument 2 for GnuTLSCache!"; | ||
386 | 391 | ||
387 | if (sc->cache_type == mgs_cache_dbm | 392 | if (sc->cache_type == mgs_cache_dbm |
388 | || sc->cache_type == mgs_cache_gdbm) { | 393 | || sc->cache_type == mgs_cache_gdbm) { |