Skip to content

Commit b938e2f

Browse files
committed
io BUGFIX ignored empty containers in filter
Fixes CESNET/netopeer2#1135
1 parent f66f1ca commit b938e2f

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
@@ -970,7 +970,7 @@ nc_write_msg_io(struct nc_session *session, int io_timeout, int type, ...)
970970
}
971971

972972
/* rpc data */
973-
if (lyd_print_clb(nc_write_xmlclb, (void *)&arg, op, LYD_XML, LYD_PRINT_SHRINK)) {
973+
if (lyd_print_clb(nc_write_xmlclb, (void *)&arg, op, LYD_XML, LYD_PRINT_SHRINK | LYD_PRINT_KEEPEMPTYCONT)) {
974974
ret = NC_MSG_ERROR;
975975
goto cleanup;
976976
}

0 commit comments

Comments
 (0)