DEVEL15-windows-smb-20090630
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 30 Jun 2009 19:00:13 +0000 (19:00 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 30 Jun 2009 19:00:13 +0000 (19:00 +0000)
LICENSE MIT

Be sure to call smb_ReleaseVCNoLock before we drop the smb_rctLock.

(cherry picked from commit 49d6a0992c42a6bb1fba8245029f31ca916214e5)

src/WINNT/afsd/smb.c

index b8e2067..0d061d4 100644 (file)
@@ -1335,12 +1335,12 @@ void smb_ReleaseTID(smb_tid_t *tidp, afs_uint32 locked)
             free(tidp);
         }
     }
+    if (vcp)
+        smb_ReleaseVCNoLock(vcp);
     if (!locked)
         lock_ReleaseWrite(&smb_rctLock);
     if (userp)
         cm_ReleaseUser(userp);
-    if (vcp)
-        smb_ReleaseVCNoLock(vcp);
 }              
 
 smb_user_t *smb_FindUID(smb_vc_t *vcp, unsigned short uid, int flags)