From fb944680941633075953ace280568f02745ffc55 Mon Sep 17 00:00:00 2001 From: Michal Vasko Date: Wed, 29 May 2024 11:16:16 +0200 Subject: [PATCH] netconf UPDATE explicit error for invalid subtree filter --- src/netconf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/netconf.c b/src/netconf.c index 544a37cc..c94b862c 100644 --- a/src/netconf.c +++ b/src/netconf.c @@ -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 */