[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-159-g84d22f7

Jeremy Allison jra at samba.org
Fri Nov 2 05:49:06 GMT 2007


The branch, v3-2-test has been updated
       via  84d22f7747126608b9460f9591bb5967d871b82d (commit)
      from  2d3ff9c502105f92720131355b41e48be8d656c2 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit 84d22f7747126608b9460f9591bb5967d871b82d
Author: Jeremy Allison <jra at samba.org>
Date:   Thu Nov 1 22:42:21 2007 -0700

    Ensure we can't accidently do a pipe write with
    unread bytes in the socket buffer.
    Jeremy

-----------------------------------------------------------------------

Summary of changes:
 source/smbd/reply.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/smbd/reply.c b/source/smbd/reply.c
index c83066d..de0e852 100644
--- a/source/smbd/reply.c
+++ b/source/smbd/reply.c
@@ -3949,6 +3949,11 @@ void reply_write_and_X(connection_struct *conn, struct smb_request *req)
 
 	/* If it's an IPC, pass off the pipe handler. */
 	if (IS_IPC(conn)) {
+		if (req->unread_bytes) {
+			reply_doserror(req, ERRDOS, ERRbadmem);
+			END_PROFILE(SMBwriteX);
+			return;
+		}
 		reply_pipe_write_and_X(req);
 		END_PROFILE(SMBwriteX);
 		return;


-- 
Samba Shared Repository


More information about the samba-cvs mailing list