client session CHANGE do not validate incoming notifications
Since we can validate little without datastore
data.
Refs sysrepo/sysrepo#2246
@@ -2174,7 +2174,7 @@ nc_recv_notif(struct nc_session *session, int timeout, struct nc_notif **notif)
}
/* notification body */
- (*notif)->tree = lyd_parse_xml(session->ctx, &xml->child, LYD_OPT_NOTIF | LYD_OPT_DESTRUCT | LYD_OPT_NOEXTDEPS
+ (*notif)->tree = lyd_parse_xml(session->ctx, &xml->child, LYD_OPT_NOTIF | LYD_OPT_DESTRUCT | LYD_OPT_TRUSTED
| (session->flags & NC_SESSION_CLIENT_NOT_STRICT ? 0 : LYD_OPT_STRICT), NULL);
lyxml_free(session->ctx, xml);
xml = NULL;
