windows-smb-writedata-crash-20080307
authorJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 7 Mar 2008 15:35:38 +0000 (15:35 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 7 Mar 2008 15:35:38 +0000 (15:35 +0000)
commit5589875561e0062b2f06fc4ce0a8fad37a0d8eb5
tree31bc8fb65d0ea4abb54d6ac212e47271f1c74991
parentfb154e60e3cb6cf9e934f9a75c5ca67473ac36a2
windows-smb-writedata-crash-20080307

LICENSE MIT
FIXES 88731

If an application opens a file for read only and then attempts to
write to it, we would attempt to release an scp mutex without having
obtained either the scp or the mutex within smb_WriteData

There was no check in smb_ReadData to ensure that the file was opened
for reading.  Add one.
src/WINNT/afsd/smb.c