From e8016a02fc164738e2c0da70a5ad65ba5f6e1e6d Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 3 Sep 2009 09:18:10 +0200 Subject: [PATCH] s3:libsmb: Attempt to fix bug 6665 Before the async libsmb rewrites, we sent tid==0 on negprot. With the rewrite, we send 0xffff. This *should* not matter, but this is one difference in the sniffs I see. --- source3/libsmb/cliconnect.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index 8a3667d..70a094e 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -1503,6 +1503,7 @@ struct async_req *cli_negprot_send(TALLOC_CTX *mem_ctx, struct async_req *result; uint8_t *bytes = NULL; int numprots; + uint16_t cnum; if (cli->protocol < PROTOCOL_NT1) cli->use_spnego = False; @@ -1527,8 +1528,12 @@ struct async_req *cli_negprot_send(TALLOC_CTX *mem_ctx, } } + cnum = cli->cnum; + + cli->cnum = 0; result = cli_request_send(mem_ctx, ev, cli, SMBnegprot, 0, 0, NULL, 0, talloc_get_size(bytes), bytes); + cli->cnum = cnum; TALLOC_FREE(bytes); return result; } -- 1.6.0.4