commit | 03df9e37fff0ae6d3a49a857422089814fc6554e | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Tue May 17 10:22:53 2016 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Tue May 17 10:22:53 2016 +0200 |
tree | 7fb5f80afe44a07169f65f80e76c5eba853085cc | |
parent | 5bb7d33bb372b83e95059fc8788a2784115f0af6 [diff] |
client session BUGFIX parse rpc with correct flags
diff --git a/src/session_client.c b/src/session_client.c index f3cb53e..15952d1 100644 --- a/src/session_client.c +++ b/src/session_client.c
@@ -1276,7 +1276,7 @@ if (rpc_gen->has_data) { data = rpc_gen->content.data; } else { - data = lyd_parse_mem(session->ctx, rpc_gen->content.xml_str, LYD_XML, LYD_OPT_STRICT); + data = lyd_parse_mem(session->ctx, rpc_gen->content.xml_str, LYD_XML, LYD_OPT_RPC | LYD_OPT_STRICT); } break;