Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -1283,8 +1283,8 @@ _nc_server_get_cpblts_version(const struct ly_ctx *ctx, LYS_VERSION version, int
free(yl_content_id);
yl_content_id = NULL;
continue;
} else if (mod->version != version) {
/* skip YANG 1.0 or 1.1 modules */
} else if (version && (mod->version != version)) {
/* skip modules not matching the requested YANG version (LYS_VERSION_UNDEF means all) */
continue;
}

Expand Down Expand Up @@ -1489,7 +1489,7 @@ nc_send_hello_io(struct nc_session *session, int config_locked)
timeout_io = NC_CLIENT_HELLO_TIMEOUT * 1000;
sid = NULL;
} else {
cpblts = _nc_server_get_cpblts_version(session->ctx, LYS_VERSION_1_0, config_locked);
cpblts = _nc_server_get_cpblts_version(session->ctx, LYS_VERSION_UNDEF, config_locked);
if (!cpblts) {
return NC_MSG_ERROR;
}
Expand Down