From 328632fdceddb03459b3692d698ff2a26dcbe355 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Fri, 10 Feb 2006 18:44:17 +0000 Subject: [PATCH] STABLE14-windows-vcp-fidsp-empty-20060210 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/WINNT/afsd/smb.c b/src/WINNT/afsd/smb.c index b60474a6a..c573fd432 100644 --- a/src/WINNT/afsd/smb.c +++ b/src/WINNT/afsd/smb.c @@ -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 */ -- 2.39.5