mirror of
https://github.com/samba-team/samba.git
synced 2025-03-10 12:58:35 +03:00
RPC fix from Ronan Waide <waider@waider.ie>. Tested with rpcecho.
Jeremy. (This used to be commit 68590b9e2266cf76b46a68cca0acaa47733811fe)
This commit is contained in:
parent
56bb027696
commit
38b3ee6467
@ -78,8 +78,8 @@ enum netsec_direction
|
|||||||
#define AUTH_PIPE_NETSEC 0x0008
|
#define AUTH_PIPE_NETSEC 0x0008
|
||||||
|
|
||||||
/* Maximum PDU fragment size. */
|
/* Maximum PDU fragment size. */
|
||||||
#define MAX_PDU_FRAG_LEN 0x1630
|
/* #define MAX_PDU_FRAG_LEN 0x1630 this is what wnt sets */
|
||||||
/* #define MAX_PDU_FRAG_LEN 0x10b8 this is what w2k sets */
|
#define MAX_PDU_FRAG_LEN 0x10b8 /* this is what w2k sets */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Actual structure of a DCE UUID
|
* Actual structure of a DCE UUID
|
||||||
|
@ -326,7 +326,7 @@ ssize_t cli_write(struct cli_state *cli,
|
|||||||
int issued = 0;
|
int issued = 0;
|
||||||
int received = 0;
|
int received = 0;
|
||||||
int mpx = MAX(cli->max_mux-1, 1);
|
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;
|
int blocks = (size + (block-1)) / block;
|
||||||
|
|
||||||
while (received < blocks) {
|
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->port_name, name);
|
||||||
init_unistr(&port->monitor_name, "Local Monitor");
|
init_unistr(&port->monitor_name, "Local Monitor");
|
||||||
init_unistr(&port->description, "Local Port");
|
init_unistr(&port->description, "Local Port");
|
||||||
#define PORT_TYPE_WRITE 1
|
|
||||||
port->port_type=PORT_TYPE_WRITE;
|
port->port_type=PORT_TYPE_WRITE;
|
||||||
port->reserved=0x0;
|
port->reserved=0x0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user