From c1b7cf5481f20e7503e736ac2edd4c6d47dfea1c Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 5 Dec 2013 15:50:58 +0100 Subject: [PATCH] smbd: Fix a panic when a smb2 brlock times out Found by Peter Somogyi. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Thu Dec 5 21:21:35 CET 2013 on sn-devel-104 --- source3/smbd/smb2_lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/smbd/smb2_lock.c b/source3/smbd/smb2_lock.c index e2ea251..671cd6f 100644 --- a/source3/smbd/smb2_lock.c +++ b/source3/smbd/smb2_lock.c @@ -511,7 +511,7 @@ static bool recalc_smb2_brl_timeout(struct smbd_server_connection *sconn) NULL, next_timeout, brl_timeout_fn, - NULL); + sconn); if (!sconn->smb2.locks.brl_timeout) { return false; } -- 1.8.5.1