diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-09-22 21:23:02 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-11-16 15:44:05 +0100 |
commit | 949f12d5921fbdd84cc46fab4a6788aff03cbfb1 (patch) | |
tree | 0b44b3aa1903bc87e383199e268e0fe49454b395 /source3/libsmb | |
parent | c96292c71020e9a82b127c21dc8b11c35d48db5a (diff) | |
download | samba-949f12d5921fbdd84cc46fab4a6788aff03cbfb1.tar.gz samba-949f12d5921fbdd84cc46fab4a6788aff03cbfb1.tar.bz2 samba-949f12d5921fbdd84cc46fab4a6788aff03cbfb1.zip |
Revert "Fix bug #8453 - smbclient segfaults when dialect option -m is used for legacy dialects"
This reverts commit f261ac1932ecdae925b27301aa3e907757845a85.
We now handle that in cli_state_create().
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Nov 16 15:44:05 CET 2011 on sn-devel-104
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/cliconnect.c | 13 |
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; } |