commit | a02d1d7b1e5771be5a5fb4d41544fa056d948389 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Mon Nov 20 13:49:05 2023 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Mon Nov 20 13:50:40 2023 +0100 |
tree | 5b5825d56c9c55428c68947942b228da4fb0d7eb | |
parent | 40015737d5f21cc3b40e208c0228c4459ec5fd7c [diff] [blame] |
set UPDATE check input vars
diff --git a/src/set.c b/src/set.c index c7fedf8..f36ab5f 100644 --- a/src/set.c +++ b/src/set.c
@@ -230,6 +230,8 @@ LIBYANG_API_DEF LY_ERR ly_set_rm_index_ordered(struct ly_set *set, uint32_t index, void (*destructor)(void *obj)) { + LY_CHECK_ARG_RET(NULL, set, set->count, LY_EINVAL); + if (destructor) { destructor(set->objs[index]); }