aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikos Mavrogiannopoulos 2010-06-27 21:06:15 +0200
committerGravatar Nikos Mavrogiannopoulos 2010-06-27 21:06:15 +0200
commit67dcd101af5d7086fd6703278f4f91072c91b29d (patch)
treee5a8f2a3dc4e6c869d2bc6a98503e1181e28b524 /src
parent389dee895b0f0fb3532d070395fe89c158f52841 (diff)
open the database as readonly when fetching.
Diffstat (limited to 'src')
-rw-r--r--src/gnutls_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gnutls_cache.c b/src/gnutls_cache.c
index a0612f9..4d4a661 100644
--- a/src/gnutls_cache.c
+++ b/src/gnutls_cache.c
@@ -390,7 +390,7 @@ static gnutls_datum_t dbm_cache_fetch(void* baton, gnutls_datum_t key)
390 return data; 390 return data;
391 391
392 rv = apr_dbm_open(&dbm, ctxt->sc->cache_config, 392 rv = apr_dbm_open(&dbm, ctxt->sc->cache_config,
393 APR_DBM_RWCREATE, SSL_DBM_FILE_MODE, ctxt->c->pool); 393 APR_DBM_READONLY, SSL_DBM_FILE_MODE, ctxt->c->pool);
394 if (rv != APR_SUCCESS) { 394 if (rv != APR_SUCCESS) {
395 ap_log_error(APLOG_MARK, APLOG_NOTICE, rv, 395 ap_log_error(APLOG_MARK, APLOG_NOTICE, rv,
396 ctxt->c->base_server, 396 ctxt->c->base_server,