diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-02-25 23:46:02 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-02-25 23:46:02 +0000 |
commit | 57467a9f6002eafdb7d1395a50089c53c37335d9 (patch) | |
tree | 339940d8e4d3b1ff1c47c8e33353eb80a76b1721 /source3/libsmb | |
parent | 4d6e45e41bf7af79e7be6772d83c6dcc23892dea (diff) | |
download | samba-57467a9f6002eafdb7d1395a50089c53c37335d9.tar.gz samba-57467a9f6002eafdb7d1395a50089c53c37335d9.tar.bz2 samba-57467a9f6002eafdb7d1395a50089c53c37335d9.zip |
neater negprot code using the new cli_setup_bcc() call
(This used to be commit 5b1728426531785d37b4fac0684114f8a84dacb2)
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/cliconnect.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index d572c0f7d7..fd0218b908 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; |