Skip to content

Commit

Permalink
netconf UPDATE explicit error for invalid subtree filter
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvasko committed May 29, 2024
1 parent dbc9821 commit fb94468
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/netconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ np2srv_rpc_get_cb(sr_session_ctx_t *session, uint32_t UNUSED(sub_id), const char
sr_session_dup_error(user_sess->sess, session);
goto cleanup;
}
} else {
ERR("Invalid subtree filter:\n %s", ((struct lyd_node_any *)node)->value.str);
rc = SR_ERR_INVAL_ARG;
goto cleanup;
}
} else {
/* xpath */
Expand Down

0 comments on commit fb94468

Please sign in to comment.