From 622abdd12b5c31c2d506d710456bebd6bfff8603 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Sun, 27 Jun 2010 21:06:15 +0200 Subject: open the database as readonly when fetching. --- src/gnutls_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) return data; rv = apr_dbm_open(&dbm, ctxt->sc->cache_config, - APR_DBM_RWCREATE, SSL_DBM_FILE_MODE, ctxt->c->pool); + APR_DBM_READONLY, SSL_DBM_FILE_MODE, ctxt->c->pool); if (rv != APR_SUCCESS) { ap_log_error(APLOG_MARK, APLOG_NOTICE, rv, ctxt->c->base_server, -- cgit