diff options
author | Nikos Mavrogiannopoulos | 2010-06-27 21:06:15 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos | 2010-06-27 21:06:15 +0200 |
commit | 622abdd12b5c31c2d506d710456bebd6bfff8603 (patch) | |
tree | e5a8f2a3dc4e6c869d2bc6a98503e1181e28b524 /src/gnutls_cache.c | |
parent | 8e9851831c54876248c0d11845bfb41e8648d177 (diff) |
open the database as readonly when fetching.
Diffstat (limited to 'src/gnutls_cache.c')
-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, |