]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
windows-vcp-fidsp-empty-20060210
authorJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 10 Feb 2006 18:43:22 +0000 (18:43 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 10 Feb 2006 18:43:22 +0000 (18:43 +0000)
protect against the case in which the vcp->fidsp list is empty
which de-queuing smb_fid_t objects

src/WINNT/afsd/smb.c

index 6c8d95a3e3e48f784a163ca9a39ccbf19c442dc7..1d0d502a42649be5b385d47b9e5e2bc1a05aace2 100644 (file)
@@ -1455,7 +1455,8 @@ void smb_ReleaseFID(smb_fid_t *fidp)
         userp = fidp->userp;
         fidp->userp = NULL;
 
-        osi_QRemove((osi_queue_t **) &vcp->fidsp, &fidp->q);
+       if (vcp->fidsp)
+         osi_QRemove((osi_queue_t **) &vcp->fidsp, &fidp->q);
         thrd_CloseHandle(fidp->raw_write_event);
 
         /* and see if there is ioctl stuff to free */