parser xml BUGFIX create-subscription filter attrs support
The module is not using filter-attrs extension
so it needs special support.
Fixes #1959
diff --git a/src/parser_xml.c b/src/parser_xml.c
index 5e1f0dc..5a929da 100644
--- a/src/parser_xml.c
+++ b/src/parser_xml.c
@@ -73,11 +73,16 @@
*meta = NULL;
/* check for NETCONF filter unqualified attributes */
- LY_ARRAY_FOR(sparent->exts, u) {
- if (!strcmp(sparent->exts[u].def->name, "get-filter-element-attributes") &&
- !strcmp(sparent->exts[u].def->module->name, "ietf-netconf")) {
- filter_attrs = 1;
- break;
+ if (!strcmp(sparent->module->name, "notifications")) {
+ /* ancient module that does not even use the extension */
+ filter_attrs = 1;
+ } else {
+ LY_ARRAY_FOR(sparent->exts, u) {
+ if (!strcmp(sparent->exts[u].def->name, "get-filter-element-attributes") &&
+ !strcmp(sparent->exts[u].def->module->name, "ietf-netconf")) {
+ filter_attrs = 1;
+ break;
+ }
}
}