Skip to content

Commit 916ce49

Browse files
committed
io BUGFIX do not support mixed content in RPC XMLs
Fixes CESNET/libyang#936
1 parent 6542b50 commit 916ce49

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ nc_read_msg_io(struct nc_session *session, int io_timeout, struct lyxml_elem **d
442442
DBG("Session %u: received message:\n%s\n", session->id, msg);
443443

444444
/* build XML tree */
445-
*data = lyxml_parse_mem(session->ctx, msg, 0);
445+
*data = lyxml_parse_mem(session->ctx, msg, LYXML_PARSE_NOMIXEDCONTENT);
446446
if (!*data) {
447447
goto malformed_msg;
448448
} else if (!(*data)->ns) {

0 commit comments

Comments
 (0)