2.0.4b: file structure leackage. Serious bug!

Matt Chapman matty at samba.org
Tue Jun 22 03:49:01 GMT 1999


Andrej,

Can you try this patch and tell me if it fixes the problem.

Cheers,

	Matt


-- 
Matthew "Austin" Chapman
SysAdmin, Developer, Samba Team Member
-------------- next part --------------
--- nttrans.orig	Tue Jun 22 13:45:05 1999
+++ nttrans.c	Tue Jun 22 13:45:26 1999
@@ -791,6 +791,8 @@
 				if(oplock_request || (desired_access & (FILE_READ_DATA|FILE_WRITE_DATA|
 												FILE_APPEND_DATA|FILE_READ_ATTRIBUTES|FILE_READ_EA|
 												FILE_WRITE_ATTRIBUTES|FILE_WRITE_EA))) {
+					file_free(fsp);
+					restore_case_semantics(file_attributes);
 					SSVAL(outbuf, smb_flg2, FLAGS2_32_BIT_ERROR_CODES);
 					return(ERROR(0, 0xc0000000|NT_STATUS_FILE_IS_A_DIRECTORY));
 				}



More information about the samba-technical mailing list