s3:libsmb: don't set cli->protocol in cli_state_create()
authorStefan Metzmacher <metze@samba.org>
Tue, 13 Sep 2011 12:37:29 +0000 (14:37 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 15 Sep 2011 09:57:17 +0000 (11:57 +0200)
This is done in cli_negprot_done(), when we know the protocol.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Sep 15 11:57:18 CEST 2011 on sn-devel-104

source3/libsmb/clientgen.c

index 05f95489ad496759d8c1b94d12410e43ab7aa627..6d8523919400de0385a17fe45c2e24f519b74526 100644 (file)
@@ -194,7 +194,6 @@ struct cli_state *cli_state_create(TALLOC_CTX *mem_ctx,
                goto error;
        }
        cli->raw_status = NT_STATUS_INTERNAL_ERROR;
-       cli->protocol = PROTOCOL_NT1;
        cli->timeout = 20000; /* Timeout is in milliseconds. */
        cli->max_xmit = CLI_BUFFER_SIZE+4;
        cli->case_sensitive = false;