s3:smb2 fix smbd crash on premature end of smb2 conn (Bug 8286)
commit32845e1f23c508d24d9deb900a8dabd559219a92
authorChristian Ambach <ambi@samba.org>
Mon, 4 Jul 2011 15:55:54 +0000 (4 17:55 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 26 Jul 2011 19:52:08 +0000 (26 21:52 +0200)
treec175443f12188e671dbde2c42e2dc22eb11bee6d
parent807cc2ced529ced8a40ff65f11b8748c9abb3761
s3:smb2 fix smbd crash on premature end of smb2 conn (Bug 8286)

when smbd tries to clean up locks after a premature end of a smb2
connection, lock_db has already been freed and so it crashes

this patch changes the order in which items are freed so that
lock_db is still around when it is needed
(cherry picked from commit 2c94ff10332f4be909a158329c41e2f5db035949)
source3/smbd/server_exit.c