client session BUGFIX handle possible opaque nodes
Refs #308
diff --git a/src/session_client.c b/src/session_client.c
index 551cb8e..4a6db83 100644
--- a/src/session_client.c
+++ b/src/session_client.c
@@ -734,7 +734,7 @@
feature_count = 0;
mod = ((struct lyd_node *)modules->dnodes[u])->schema->module;
LY_LIST_FOR(lyd_child(modules->dnodes[u]), iter) {
- if (iter->schema->module != mod) {
+ if (!iter->schema || (iter->schema->module != mod)) {
/* ignore node from other schemas (augments) */
continue;
}