Skip to content

Commit 4020801

Browse files
committed
client session CHANGE do not validate incoming notifications
Since we can validate little without datastore data. Refs sysrepo/sysrepo#2246
1 parent 294e0f7 commit 4020801

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/session_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2174,7 +2174,7 @@ nc_recv_notif(struct nc_session *session, int timeout, struct nc_notif **notif)
21742174
}
21752175

21762176
/* notification body */
2177-
(*notif)->tree = lyd_parse_xml(session->ctx, &xml->child, LYD_OPT_NOTIF | LYD_OPT_DESTRUCT | LYD_OPT_NOEXTDEPS
2177+
(*notif)->tree = lyd_parse_xml(session->ctx, &xml->child, LYD_OPT_NOTIF | LYD_OPT_DESTRUCT | LYD_OPT_TRUSTED
21782178
| (session->flags & NC_SESSION_CLIENT_NOT_STRICT ? 0 : LYD_OPT_STRICT), NULL);
21792179
lyxml_free(session->ctx, xml);
21802180
xml = NULL;

0 commit comments

Comments
 (0)