svn commit: samba r24512 - in branches/SAMBA_3_2/source/smbd: .
vlendec at samba.org
vlendec at samba.org
Fri Aug 17 10:05:15 GMT 2007
Author: vlendec
Date: 2007-08-17 10:05:14 +0000 (Fri, 17 Aug 2007)
New Revision: 24512
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24512
Log:
Fix RAW-NOTIFY
With the inbuf consistency checks we have to more correctly fake the
inbuf
Modified:
branches/SAMBA_3_2/source/smbd/notify.c
Changeset:
Modified: branches/SAMBA_3_2/source/smbd/notify.c
===================================================================
--- branches/SAMBA_3_2/source/smbd/notify.c 2007-08-17 09:12:13 UTC (rev 24511)
+++ branches/SAMBA_3_2/source/smbd/notify.c 2007-08-17 10:05:14 UTC (rev 24512)
@@ -156,6 +156,7 @@
{
prs_struct ps;
struct smb_request *req = NULL;
+ uint8 tmp_request[smb_size];
if (notify_buf->num_changes == -1) {
change_notify_reply_packet(request_buf, NT_STATUS_OK);
@@ -180,10 +181,17 @@
goto done;
}
- smb_setlen(NULL, request_buf, smb_size);
+ memcpy(tmp_request, request_buf, smb_size);
- init_smb_request(req, request_buf);
+ /*
+ * We're only interested in the header fields here
+ */
+ smb_setlen(NULL, (char *)tmp_request, smb_size);
+ SCVAL(tmp_request, smb_wct, 0);
+
+ init_smb_request(req, tmp_request);
+
send_nt_replies(req, NT_STATUS_OK, prs_data_p(&ps),
prs_offset(&ps), NULL, 0);
More information about the samba-cvs
mailing list