Skip to content

Commit 85bf4e9

Browse files
committed
netconf UPDATE use timeout for DS lock
Fixes #1766
1 parent bc0ac84 commit 85bf4e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/netconf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ np2srv_rpc_un_lock_cb(const struct lyd_node *rpc, struct np_user_sess *user_sess
578578

579579
/* sysrepo API */
580580
if (!strcmp(rpc->schema->name, "lock")) {
581-
r = sr_lock(user_sess->sess, NULL, 0);
581+
r = sr_lock(user_sess->sess, NULL, np2srv.sr_timeout);
582582
} else {
583583
assert(!strcmp(rpc->schema->name, "unlock"));
584584
r = sr_unlock(user_sess->sess, NULL);

0 commit comments

Comments
 (0)