smbd: Fix a panic when a smb2 brlock times out
authorVolker Lendecke <vl@samba.org>
Thu, 5 Dec 2013 14:50:58 +0000 (15:50 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 10 Dec 2013 12:04:28 +0000 (13:04 +0100)
Found by Peter Somogyi.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
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.

source3/smbd/smb2_lock.c

index e2ea2512c6a2670202c3aeaad785350890b5c534..671cd6f06653f42d1bae7d23574a32dcddc68b58 100644 (file)
@@ -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;
        }