summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/libsmb/cliconnect.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index 8361715e18..a2a65b5b5c 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -1976,19 +1976,6 @@ NTSTATUS cli_session_setup(struct cli_state *cli,
}
if (cli_state_protocol(cli) < PROTOCOL_LANMAN1) {
- /*
- * Ensure cli->server_domain,
- * cli->server_os and cli->server_type
- * are valid pointers.
- */
- cli->server_domain = talloc_strdup(cli, "");
- cli->server_os = talloc_strdup(cli, "");
- cli->server_type = talloc_strdup(cli, "");
- if (cli->server_domain == NULL ||
- cli->server_os == NULL ||
- cli->server_type == NULL) {
- return NT_STATUS_NO_MEMORY;
- }
return NT_STATUS_OK;
}