summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-09-20 05:23:53 +0200
committerStefan Metzmacher <metze@samba.org>2011-11-16 14:07:35 +0100
commitc96292c71020e9a82b127c21dc8b11c35d48db5a (patch)
tree6ac15a687179a187c70d5ac08bedc239628e4c4c /source3/libsmb
parent693781db8962a39af376e5d5df0d36e1f3ad127b (diff)
downloadsamba-c96292c71020e9a82b127c21dc8b11c35d48db5a.tar.gz
samba-c96292c71020e9a82b127c21dc8b11c35d48db5a.tar.bz2
samba-c96292c71020e9a82b127c21dc8b11c35d48db5a.zip
s3:libsmb: always init cli->{server_os,server_domain,server_type}
We should do that at creation time of cli_state. metze
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clientgen.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index db980a486d..bc544afd32 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -190,6 +190,19 @@ struct cli_state *cli_state_create(TALLOC_CTX *mem_ctx,
return NULL;
}
+ cli->server_domain = talloc_strdup(cli, "");
+ if (!cli->server_domain) {
+ goto error;
+ }
+ cli->server_os = talloc_strdup(cli, "");
+ if (!cli->server_os) {
+ goto error;
+ }
+ cli->server_type = talloc_strdup(cli, "");
+ if (!cli->server_type) {
+ goto error;
+ }
+
cli->dfs_mountpoint = talloc_strdup(cli, "");
if (!cli->dfs_mountpoint) {
goto error;