[PATCH] smbd: Fix a panic when a smb2 brlock times out
Volker Lendecke
Volker.Lendecke at SerNet.DE
Thu Dec 5 07:54:45 MST 2013
Hi!
Attached find a pretty obvious fix for a panic that kicks in
when a smb2 brlock times out due to a conflicting posix
level lock.
Thanks to Peter Somogyi for finding this!
Please review & push!
Thanks,
Volker
--
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de
-------------- next part --------------
From cec3a54c24df4a0f9b068c274c4328a2198eef1f Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl at samba.org>
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 <vl at samba.org>
---
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.7.9.5
More information about the samba-technical
mailing list