diff --git a/source3/smbd/service.c b/source3/smbd/service.c index c4d3486cdf6..914cec86d8d 100644 --- a/source3/smbd/service.c +++ b/source3/smbd/service.c @@ -709,6 +709,10 @@ static NTSTATUS make_connection_snum(struct smbd_server_connection *sconn, } } + if (lp_kernel_oplocks(snum)) { + init_kernel_oplocks(conn->sconn); + } + /* * Fix compatibility issue pointed out by Volker. * We pass the conn->connectpath to the preexec