svn commit: samba r24328 - in branches/SAMBA_3_2/source/smbd: .
vlendec at samba.org
vlendec at samba.org
Sat Aug 11 15:02:59 GMT 2007
Author: vlendec
Date: 2007-08-11 15:02:58 +0000 (Sat, 11 Aug 2007)
New Revision: 24328
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24328
Log:
Restore chain_reply error handling
Get the whole smb header from the second chained function, in particular
the error fields
Modified:
branches/SAMBA_3_2/source/smbd/process.c
Changeset:
Modified: branches/SAMBA_3_2/source/smbd/process.c
===================================================================
--- branches/SAMBA_3_2/source/smbd/process.c 2007-08-11 14:37:39 UTC (rev 24327)
+++ branches/SAMBA_3_2/source/smbd/process.c 2007-08-11 15:02:58 UTC (rev 24328)
@@ -1500,9 +1500,10 @@
memcpy(outbuf + smb_wct, caller_output, caller_outputlen);
/*
- * The secondary function has overwritten smb_com
+ * copy the new reply header over the old one but preserve the smb_com
+ * field
*/
-
+ memmove(outbuf,outbuf2,smb_wct);
SCVAL(outbuf, smb_com, smb_com1);
/*
More information about the samba-cvs
mailing list