commit | b0099a9e615bfe030858b327f60fa86ef333ef15 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Mon Aug 31 14:55:23 2020 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Mon Aug 31 14:55:23 2020 +0200 |
tree | fa92a2e470f3ea2187926fa0ce652a7de3eb65ad | |
parent | 27915724a15c2020a24800b4187ebb0f16ecbbd9 [diff] [blame] |
libyang BUGFIX return value checking
diff --git a/src/validation.c b/src/validation.c index c16928d..e06df09 100644 --- a/src/validation.c +++ b/src/validation.c
@@ -689,7 +689,8 @@ LY_CHECK_RET(ly_set_new(&set)); LY_LIST_FOR(first, diter) { if (diter->schema == snode) { - LY_CHECK_RET(ly_set_add(set, (void *)diter, LY_SET_OPT_USEASLIST, NULL)); + ret = ly_set_add(set, (void *)diter, LY_SET_OPT_USEASLIST, NULL); + LY_CHECK_GOTO(ret, cleanup); } }