mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-23 03:58:21 +08:00
mdbx: require data == NULL for mdbx_cursor_get(MDBX_SET).
This commit is contained in:
parent
7ffff48fdc
commit
6fb628d88d
@ -7665,6 +7665,9 @@ int mdbx_cursor_get(MDBX_cursor *mc, MDBX_val *key, MDBX_val *data,
|
|||||||
return MDBX_INCOMPATIBLE;
|
return MDBX_INCOMPATIBLE;
|
||||||
/* FALLTHRU */
|
/* FALLTHRU */
|
||||||
case MDBX_SET:
|
case MDBX_SET:
|
||||||
|
if (op == MDBX_SET && unlikely(data != NULL))
|
||||||
|
return MDBX_EINVAL;
|
||||||
|
/* FALLTHRU */
|
||||||
case MDBX_SET_KEY:
|
case MDBX_SET_KEY:
|
||||||
case MDBX_SET_RANGE:
|
case MDBX_SET_RANGE:
|
||||||
if (unlikely(key == NULL))
|
if (unlikely(key == NULL))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user