summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-02-25 23:46:02 +0000
committerAndrew Tridgell <tridge@samba.org>2001-02-25 23:46:02 +0000
commit57467a9f6002eafdb7d1395a50089c53c37335d9 (patch)
tree339940d8e4d3b1ff1c47c8e33353eb80a76b1721
parent4d6e45e41bf7af79e7be6772d83c6dcc23892dea (diff)
downloadsamba-57467a9f6002eafdb7d1395a50089c53c37335d9.tar.gz
samba-57467a9f6002eafdb7d1395a50089c53c37335d9.tar.xz
samba-57467a9f6002eafdb7d1395a50089c53c37335d9.zip
neater negprot code using the new cli_setup_bcc() call
(This used to be commit 5b1728426531785d37b4fac0684114f8a84dacb2)
-rw-r--r--source3/libsmb/cliconnect.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index d572c0f7d7d..fd0218b9086 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -339,17 +339,11 @@ void cli_negprot_send(struct cli_state *cli)
{
char *p;
int numprots;
- int plength;
memset(cli->outbuf,'\0',smb_size);
/* setup the protocol strings */
- for (plength=0,numprots=0;
- prots[numprots].name && prots[numprots].prot<=cli->protocol;
- numprots++)
- plength += strlen(prots[numprots].name)+2;
-
- set_message(cli->outbuf,0,plength,True);
+ set_message(cli->outbuf,0,0,True);
p = smb_buf(cli->outbuf);
for (numprots=0;
@@ -362,6 +356,7 @@ void cli_negprot_send(struct cli_state *cli)
}
CVAL(cli->outbuf,smb_com) = SMBnegprot;
+ cli_setup_bcc(cli, p);
cli_setup_packet(cli);
CVAL(smb_buf(cli->outbuf),0) = 2;