commit | b0d8410c0d0b1bc4fe6ea2ed106e3dfb84c93533 | [log] [tgz] |
---|---|---|
author | PavolVican <xvican01@stud.fit.vutbr.cz> | Wed Feb 15 16:32:42 2017 +0100 |
committer | PavolVican <xvican01@stud.fit.vutbr.cz> | Wed Feb 15 16:32:42 2017 +0100 |
tree | 5623682a9dece87a73c7b887c669f6c591f779fc | |
parent | 5334c89fe4221a146335b030aeff44be0b7fc157 [diff] [blame] |
parser yang BUGFIX missing check of argument in extension instance
diff --git a/src/resolve.c b/src/resolve.c index 68ae8ab..45f75f2 100644 --- a/src/resolve.c +++ b/src/resolve.c
@@ -4684,6 +4684,11 @@ (*ext)->def = e; (*ext)->parent = info->parent; + if (e->argument && !(*ext)->arg_value) { + LOGVAL(LYE_MISSARG, LY_VLOG_NONE, NULL, e->argument, ext_name); + goto error; + } + /* extension type-specific part */ if (e->plugin) { etype = e->plugin->type;