]> git.michaelhowe.org Git - packages/o/openafs.git/commit
DEVEL15-windows-smb-writedata-crash-20080307
authorJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 7 Mar 2008 15:37:26 +0000 (15:37 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 7 Mar 2008 15:37:26 +0000 (15:37 +0000)
commit6ad80c9afaff95f94d4f8e1d13e3fa5d225574ca
treebf60053e4819ec2148ba906bbc4cf6ab26180eeb
parentefcef7c17fa0d5be79f72a8f3e7619bcd2ce2cdd
DEVEL15-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.

(cherry picked from commit 5589875561e0062b2f06fc4ce0a8fad37a0d8eb5)
src/WINNT/afsd/smb.c