git.samba.org
/
tridge
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb8a4a9
)
s3:rpc_client: don't randomly fragment rpc pdu's in developer mode
author
Stefan Metzmacher
<metze@samba.org>
Sun, 20 Sep 2009 21:29:11 +0000
(23:29 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Fri, 25 Sep 2009 03:20:16 +0000
(
05:20
+0200)
This is really confusing and also breaks against windows,
as it doesn't accept fragmented bind requests.
metze
source3/rpc_client/cli_pipe.c
patch
|
blob
|
history
diff --git
a/source3/rpc_client/cli_pipe.c
b/source3/rpc_client/cli_pipe.c
index 5392d1f78feda92ea4ab40c3a8f9eea786c60fcb..34b861690704c4edf3a54349218a866c422501be 100644
(file)
--- a/
source3/rpc_client/cli_pipe.c
+++ b/
source3/rpc_client/cli_pipe.c
@@
-1296,7
+1296,7
@@
static struct tevent_req *rpc_api_pipe_send(TALLOC_CTX *mem_ctx,
max_recv_frag = cli->max_recv_frag;
-#if
def DEVELOPER
+#if
0
max_recv_frag = RPC_HEADER_LEN + 10 + (sys_random() % 32);
#endif
@@
-2005,7
+2005,7
@@
static uint32 calculate_data_len_tosend(struct rpc_pipe_client *cli,
{
uint32 data_space, data_len;
-#if
def DEVELOPER
+#if
0
if ((data_left > 0) && (sys_random() % 2)) {
data_left = MAX(data_left/2, 1);
}