Ignore:
Timestamp:
Nov 14, 2012, 12:59:34 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to 3.6.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source3/smbd/pipes.c

    r414 r740  
    2727
    2828#include "includes.h"
     29#include "smbd/smbd.h"
     30#include "smbd/globals.h"
     31#include "libcli/security/security.h"
     32#include "rpc_server/srv_pipe_hnd.h"
    2933
    3034#define PIPE            "\\PIPE\\"
     
    6670        }
    6771
    68         status = np_open(NULL, name, conn->client_address,
    69                          conn->server_info, &fsp->fake_file_handle);
     72        status = np_open(fsp, name,
     73                         conn->sconn->local_address,
     74                         conn->sconn->remote_address,
     75                         &conn->sconn->client_id,
     76                         conn->session_info,
     77                         conn->sconn->msg_ctx,
     78                         &fsp->fake_file_handle);
    7079        if (!NT_STATUS_IS_OK(status)) {
    7180                DEBUG(10, ("np_open(%s) returned %s\n", name,
     
    235244
    236245 send:
    237         if (!srv_send_smb(smbd_server_fd(), (char *)req->outbuf,
     246        if (!srv_send_smb(req->sconn, (char *)req->outbuf,
    238247                          true, req->seqnum+1,
    239248                          IS_CONN_ENCRYPTED(req->conn)||req->encrypted,
     
    450459
    451460        srv_set_message((char *)req->outbuf, 12, nread, False);
    452  
     461
     462#if 0
     463        /*
     464         * we should return STATUS_BUFFER_OVERFLOW if there's
     465         * out standing data.
     466         *
     467         * But we can't enable it yet, as it has bad interactions
     468         * with fixup_chain_error_packet() in chain_reply().
     469         */
     470        if (is_data_outstanding) {
     471                error_packet_set((char *)req->outbuf, ERRDOS, ERRmoredata,
     472                                 STATUS_BUFFER_OVERFLOW, __LINE__, __FILE__);
     473        }
     474#endif
     475
    453476        SSVAL(req->outbuf,smb_vwv5,nread);
    454477        SSVAL(req->outbuf,smb_vwv6,
Note: See TracChangeset for help on using the changeset viewer.