summaryrefslogtreecommitdiff
path: root/source3/libsmb/smb2cli_negprot.c
diff options
context:
space:
mode:
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);
}