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

(cherry picked from commit 81cfded7dbdf25d774375719ce02ebbfe698d77c)

src/WINNT/afsd/smb.c

index b60474a6a9fd4fcffa1e55492d57b63bf51857f7..c573fd432186f20079c6a0fe9eb1ebec027b1682 100644 (file)
@@ -1403,7 +1403,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 */