Skip to content

Commit 490fcff

Browse files
committed
server config BUGFIX leaves may be missing in diff
1 parent 134e990 commit 490fcff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/server_config.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3359,8 +3359,10 @@ config_listen(const struct lyd_node *node, enum nc_operation parent_op,
33593359
NC_NODE_GET_OP(node, parent_op, &op);
33603360

33613361
/* configure idle-timeout */
3362-
NC_CHECK_RET(nc_lyd_find_child(node, "idle-timeout", 1, &n));
3363-
NC_CHECK_RET(config_idle_timeout(n, op, config));
3362+
NC_CHECK_RET(nc_lyd_find_child(node, "idle-timeout", 0, &n));
3363+
if (n) {
3364+
NC_CHECK_RET(config_idle_timeout(n, op, config));
3365+
}
33643366

33653367
/* configure endpoints */
33663368
NC_CHECK_RET(nc_lyd_find_child(node, "endpoints", 1, &n));

0 commit comments

Comments
 (0)