mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 07:39:35 -05:00
More ITS#7793 Check key->mv_size with MDB_CURRENT.
Since non-NULL key must be provided now.
This commit is contained in:
parent
4b9aed26a5
commit
2f33effcdc
1 changed files with 1 additions and 1 deletions
|
|
@ -5825,7 +5825,7 @@ mdb_cursor_put(MDB_cursor *mc, MDB_val *key, MDB_val *data,
|
||||||
if (mc->mc_txn->mt_flags & (MDB_TXN_RDONLY|MDB_TXN_ERROR))
|
if (mc->mc_txn->mt_flags & (MDB_TXN_RDONLY|MDB_TXN_ERROR))
|
||||||
return (mc->mc_txn->mt_flags & MDB_TXN_RDONLY) ? EACCES : MDB_BAD_TXN;
|
return (mc->mc_txn->mt_flags & MDB_TXN_RDONLY) ? EACCES : MDB_BAD_TXN;
|
||||||
|
|
||||||
if (flags != MDB_CURRENT && key->mv_size-1 >= ENV_MAXKEY(env))
|
if (key->mv_size-1 >= ENV_MAXKEY(env))
|
||||||
return MDB_BAD_VALSIZE;
|
return MDB_BAD_VALSIZE;
|
||||||
|
|
||||||
#if SIZE_MAX > MAXDATASIZE
|
#if SIZE_MAX > MAXDATASIZE
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue