sub shm BUGFIX parse oper parent as data not config only
Also, print LY error if parent fails to be parsed.
Refs
@@ -2194,8 +2194,12 @@ sr_shmsub_oper_listen_process_module_events(struct modsub_oper_s *oper_subs, sr_
/* parse data parent */
ly_errno = 0;
parent = lyd_parse_mem(conn->ly_ctx, oper_sub->sub_shm.addr + sizeof(sr_sub_shm_t) + sr_strshmlen(request_xpath),
- LYD_LYB, LYD_OPT_CONFIG | LYD_OPT_STRICT);
- SR_CHECK_INT_GOTO(ly_errno, err_info, error_rdunlock);
+ LYD_LYB, LYD_OPT_DATA | LYD_OPT_STRICT);
+ if (ly_errno) {
+ sr_errinfo_new_ly(&err_info, conn->ly_ctx);
+ SR_ERRINFO_INT(&err_info);
+ goto error_rdunlock;
+ }
/* go to the actual parent, not the root */
if ((err_info = sr_ly_find_last_parent(&parent, 0))) {
goto error_rdunlock;
