From 717edc25b21ed03acf07b704aae9d6c2a81bc73e 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 Fix bug #10311 - SMB2 server can panic when a smb2 brlock times out. Autobuild-User(v4-0-test): Karolin Seeger Autobuild-Date(v4-0-test): Tue Dec 10 15:06:45 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 e2ea2512c6a..671cd6f0665 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; } -- 2.11.4.GIT