summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-09-20 23:29:11 +0200
committerKarolin Seeger <kseeger@samba.org>2009-10-20 15:00:25 +0200
commit04be26e577866b1d02f14ce524c3f3d6751e68e2 (patch)
treea4b1047dbda1a5d42f573054dbd16908a1635da2
parent15ac51217643c84b8563912c43e7ed0553c65806 (diff)
downloadsamba-04be26e577866b1d02f14ce524c3f3d6751e68e2.tar.gz
s3:rpc_client: don't randomly fragment rpc pdu's in developer mode
This is really confusing and also breaks against windows, as it doesn't accept fragmented bind requests. metze (cherry picked from commit 68b8149d1fb26b2fe1138c99d971754b0a30378b) (cherry picked from commit 10ff61b24f0604c9686e728ac92c1a2987a31aed)
-rw-r--r--source3/rpc_client/cli_pipe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index 9990f1b7a01..0d1d5e8dbda 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -1280,7 +1280,7 @@ static struct async_req *rpc_api_pipe_send(TALLOC_CTX *mem_ctx,
max_recv_frag = cli->max_recv_frag;
-#ifdef DEVELOPER
+#if 0
max_recv_frag = RPC_HEADER_LEN + 10 + (sys_random() % 32);
#endif
@@ -1966,7 +1966,7 @@ static uint32 calculate_data_len_tosend(struct rpc_pipe_client *cli,
{
uint32 data_space, data_len;
-#ifdef DEVELOPER
+#if 0
if ((data_left > 0) && (sys_random() % 2)) {
data_left = MAX(data_left/2, 1);
}