]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
windows-more-cleanup-20060201
authorJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 1 Feb 2006 18:28:58 +0000 (18:28 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 1 Feb 2006 18:28:58 +0000 (18:28 +0000)
missed one case where the vcpCounter wrapped fids at 0

src/WINNT/afsd/smb.c

index 3941150e25ca2188a910aabaa6ba97059027673b..4e16c12f418a5c13bf670f112c11de3180f6d3eb 100644 (file)
@@ -1420,7 +1420,7 @@ smb_fid_t *smb_FindFID(smb_vc_t *vcp, unsigned short fid, int flags)
         fidp->raw_write_event = event;
         if (newFid) {
             vcp->fidCounter = fid+1;
-            if (vcp->fidCounter == 0) {
+            if (vcp->fidCounter == 0xFFFF) {
                osi_Log1(smb_logp, "fidCounter wrapped around for vcp 0x%x",
                         vcp);
                 vcp->fidCounter = 1;