aboutsummaryrefslogtreecommitdiffstats
path: root/src/gnutls_cache.c
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
commit622abdd12b5c31c2d506d710456bebd6bfff8603 (patch)
treee5a8f2a3dc4e6c869d2bc6a98503e1181e28b524 /src/gnutls_cache.c
parent8e9851831c54876248c0d11845bfb41e8648d177 (diff)
open the database as readonly when fetching.
Diffstat (limited to 'src/gnutls_cache.c')
-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,