Skip to content

Commit

Permalink
netconf BUGFIX properly handle no returned data
Browse files Browse the repository at this point in the history
Refs #1661
  • Loading branch information
michalvasko committed Nov 4, 2024
1 parent 097de22 commit d7f08c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/netconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ np2srv_get_rpc_data(sr_session_ctx_t *session, const char *xp_filter, sr_session
goto cleanup;
}

if (!strcmp(xp_filter, "/*")) {
/* no filter, use all the data */
if (!strcmp(xp_filter, "/*") || !base_data) {
/* no filter, use all the data, or no data at all */
*data = base_data;
base_data = NULL;
goto cleanup;
Expand Down

0 comments on commit d7f08c5

Please sign in to comment.