Quite a few callers set "psmblctx" to NULL, and I could not really
follow 100% that brl_lock only assigns that in the blocking lock
case. Too many layers :-)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
{
struct byte_range_lock *br_lck = NULL;
struct server_id blocker_pid;
+ uint64_t blocker_smblctx;
/* silently return ok on print files as we don't do locking there */
if (fsp->print_file) {
lock_flav,
blocking_lock,
&blocker_pid,
- psmblctx);
+ &blocker_smblctx);
+
+ if (psmblctx != NULL) {
+ *psmblctx = blocker_smblctx;
+ }
DEBUG(10, ("do_lock: returning status=%s\n", nt_errstr(*perr)));