[PATCH 1/2] Re-order smbsrv_recv_smb_request and smb_messages

Amin Azez azez at ufomechanic.net
Mon Mar 10 13:19:59 GMT 2008


Re-factored on origin/v4-0-test which had this intervening change:

--- ../samba-git/source/smb_server/smb/receive.c        2008-03-10
10:04:22.000000000 +0000
+++ source/smb_server/smb/receive.c     2008-03-10 13:11:18.000000000 +0000
@@ -439,6 +439,9 @@

        req->flags2     = SVAL(req->in.hdr, HDR_FLG2);

+       /* fix the bufinfo */
+       smbsrv_setup_bufinfo(req);
+
        if (!smbsrv_signing_check_incoming(req)) {
                smbsrv_send_error(req, NT_STATUS_ACCESS_DENIED);
                return NT_STATUS_OK;
@@ -631,6 +634,9 @@
        req->in.data_size = data_size;
        req->in.ptr = data;

+       /* fix the bufinfo */
+       smbsrv_setup_bufinfo(req);
+
        req->chain_count++;

        SSVAL(req->out.vwv, VWV(0), chain_cmd);


No functional change, just re-ordering so that
smbsrv_recv_smb_request can refer to smb_messages
in a future patch

Signed-off-by: Amin Azez <azez at ufomechanic.net>
---
 source/smb_server/smb/receive.c |  198
+++++++++++++++++++-------------------
 1 files changed, 99 insertions(+), 99 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6015bc625992de3b37773072b7314eb33b46257f.diff
Type: text/x-patch
Size: 7644 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20080310/8a2f7a85/6015bc625992de3b37773072b7314eb33b46257f.bin


More information about the samba-technical mailing list