summaryrefslogtreecommitdiff
path: root/source3/libsmb/smb2cli_negprot.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-09-22 21:09:00 +0200
committerStefan Metzmacher <metze@samba.org>2011-11-24 19:02:31 +0100
commit9ebdee281712dd6c89e406aa0e374e12c4dd8eb4 (patch)
tree244935ca18588a3464f0302c8bd315c4f4e906d1 /source3/libsmb/smb2cli_negprot.c
parentbda3d491b416f780f63841e9f3a92b9a94c2aadc (diff)
downloadsamba-9ebdee281712dd6c89e406aa0e374e12c4dd8eb4.tar.gz
samba-9ebdee281712dd6c89e406aa0e374e12c4dd8eb4.tar.bz2
samba-9ebdee281712dd6c89e406aa0e374e12c4dd8eb4.zip
s3:libsmb: implement cli_state based functions on top of smbXcli_conn/smbXcli_req
metze
Diffstat (limited to 'source3/libsmb/smb2cli_negprot.c')
-rw-r--r--source3/libsmb/smb2cli_negprot.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/source3/libsmb/smb2cli_negprot.c b/source3/libsmb/smb2cli_negprot.c
index ebf61ec980..0e3bcebeaa 100644
--- a/source3/libsmb/smb2cli_negprot.c
+++ b/source3/libsmb/smb2cli_negprot.c
@@ -24,19 +24,7 @@
NTSTATUS smb2cli_negprot(struct cli_state *cli)
{
- if (cli->smb2.conn == NULL) {
- cli->smb2.conn = smbXcli_conn_create(cli,
- cli->conn.fd,
- cli->conn.remote_name,
- 0, /* signing state */
- 0, /* smb1_capabilities */
- NULL); /* client guid */
- if (cli->smb2.conn == NULL) {
- return NT_STATUS_NO_MEMORY;
- }
- }
-
- return smbXcli_negprot(cli->smb2.conn, cli->timeout,
+ return smbXcli_negprot(cli->conn, cli->timeout,
PROTOCOL_SMB2_02, PROTOCOL_SMB2_02);
}