summaryrefslogtreecommitdiff
path: root/dbm
diff options
context:
space:
mode:
authordavi <davi@13f79535-47bb-0310-9956-ffa450edef68>2007-08-04 00:02:47 +0000
committerdavi <davi@13f79535-47bb-0310-9956-ffa450edef68>2007-08-04 00:02:47 +0000
commit32559c7e2054e90aa001f5e4f5fdc0c58964c1d2 (patch)
treed777453105de233adf307dd77f3746cded3660c8 /dbm
parentec8fdaa516430d05e86ca44c496e9fbe6b5f5109 (diff)
downloadlibapr-util-32559c7e2054e90aa001f5e4f5fdc0c58964c1d2.tar.gz
The last two arguments to APR_DBM_FETCH were inverted, causing the datum of
the key to be used as the return datum and vice-versa. Found while investigating PR 43025. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@562623 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dbm')
-rw-r--r--dbm/apr_dbm_sdbm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbm/apr_dbm_sdbm.c b/dbm/apr_dbm_sdbm.c
index 9647a44f..6fba2833 100644
--- a/dbm/apr_dbm_sdbm.c
+++ b/dbm/apr_dbm_sdbm.c
@@ -140,7 +140,7 @@ static apr_status_t vt_sdbm_fetch(apr_dbm_t *dbm, apr_datum_t key,
result_datum_t rd;
CONVERT_DATUM(ckey, &key);
- rv = APR_DBM_FETCH(dbm->file, ckey, rd);
+ rv = APR_DBM_FETCH(dbm->file, rd, ckey);
RETURN_DATUM(pvalue, rd);
REGISTER_CLEANUP(dbm, pvalue);