commit | c5d6486a487810f7dba46e69a6ceab0f7fb6c711 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Tue Nov 24 18:04:45 2020 +0100 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Thu Nov 26 07:16:03 2020 +0100 |
tree | 5b42f2c622e04903f5339782298e73ac3abff1a5 | |
parent | 0550b769ed458b5e26495b94a109eafbdd9f4f3a [diff] |
schema tree BUGFIX actually implement modules if needed
diff --git a/src/tree_schema_helpers.c b/src/tree_schema_helpers.c index f101c4f..0211da0 100644 --- a/src/tree_schema_helpers.c +++ b/src/tree_schema_helpers.c
@@ -879,7 +879,11 @@ */ if (implement) { /* mark the module implemented, check for collision was already done */ - (*mod)->implemented = 1; + ret = lys_set_implemented(*mod, features); + if (ret) { + *mod = NULL; + return ret; + } } return LY_SUCCESS;