mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
RPC fix from Ronan Waide <waider@waider.ie>. Tested with rpcecho.
Jeremy.
This commit is contained in:
parent
20b6e64da2
commit
68590b9e22
@ -78,8 +78,8 @@ enum netsec_direction
|
||||
#define AUTH_PIPE_NETSEC 0x0008
|
||||
|
||||
/* Maximum PDU fragment size. */
|
||||
#define MAX_PDU_FRAG_LEN 0x1630
|
||||
/* #define MAX_PDU_FRAG_LEN 0x10b8 this is what w2k sets */
|
||||
/* #define MAX_PDU_FRAG_LEN 0x1630 this is what wnt sets */
|
||||
#define MAX_PDU_FRAG_LEN 0x10b8 /* this is what w2k sets */
|
||||
|
||||
/*
|
||||
* Actual structure of a DCE UUID
|
||||
|
@ -326,7 +326,7 @@ ssize_t cli_write(struct cli_state *cli,
|
||||
int issued = 0;
|
||||
int received = 0;
|
||||
int mpx = MAX(cli->max_mux-1, 1);
|
||||
int block = (cli->max_xmit - (smb_size+32)) & ~1023;
|
||||
int block = cli->max_xmit - (smb_size+32);
|
||||
int blocks = (size + (block-1)) / block;
|
||||
|
||||
while (received < blocks) {
|
||||
|
@ -7100,7 +7100,6 @@ static void fill_port_2(PORT_INFO_2 *port, const char *name)
|
||||
init_unistr(&port->port_name, name);
|
||||
init_unistr(&port->monitor_name, "Local Monitor");
|
||||
init_unistr(&port->description, "Local Port");
|
||||
#define PORT_TYPE_WRITE 1
|
||||
port->port_type=PORT_TYPE_WRITE;
|
||||
port->reserved=0x0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user