client session BUGFIX do not load imported modules as implemented
diff --git a/src/session_client.c b/src/session_client.c
index b10b958..d0d778f 100644
--- a/src/session_client.c
+++ b/src/session_client.c
@@ -882,6 +882,11 @@
unsigned int u, v;
for (u = 0; modules[u].name; ++u) {
+ /* skip import-only modules */
+ if (!modules[u].implemented) {
+ continue;
+ }
+
/* we can continue even if it fails */
nc_ctx_load_module(session, modules[u].name, modules[u].revision, modules, user_clb, user_data, has_get_schema, &mod);