diff options
author | Nikos Mavrogiannopoulos | 2010-06-27 21:06:15 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos | 2010-06-27 21:06:15 +0200 |
commit | 67dcd101af5d7086fd6703278f4f91072c91b29d (patch) | |
tree | e5a8f2a3dc4e6c869d2bc6a98503e1181e28b524 | |
parent | 389dee895b0f0fb3532d070395fe89c158f52841 (diff) |
open the database as readonly when fetching.
-rw-r--r-- | src/gnutls_cache.c | 2 |
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, |