summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-07-21 21:47:36 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-21 22:08:53 +0200
commitebe258dd4091c00cf2ca3d6648cf4d60cb682ee1 (patch)
tree489e2ef1d71b18fc3647b925087af92bfeb7fe5c /source3/winbindd
parent04b740d18b5f7868bcded1b1bda504a95082425a (diff)
downloadsamba-ebe258dd4091c00cf2ca3d6648cf4d60cb682ee1.tar.gz
samba-ebe258dd4091c00cf2ca3d6648cf4d60cb682ee1.tar.bz2
samba-ebe258dd4091c00cf2ca3d6648cf4d60cb682ee1.zip
s3:libsmb: replace cli_initialise[_ex]() by cli_state_create()
This makes sure cli_state->src_ss and cli_state->dest_ss are always initialized. metze
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_cm.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c
index 55e6e7b399..25f639872e 100644
--- a/source3/winbindd/winbindd_cm.c
+++ b/source3/winbindd/winbindd_cm.c
@@ -812,19 +812,14 @@ static NTSTATUS cm_prepare_connection(const struct winbindd_domain *domain,
goto done;
}
- if ((*cli = cli_initialise()) == NULL) {
+ *cli = cli_state_create(NULL, sockfd, controller, Undefined);
+ if (*cli == NULL) {
DEBUG(1, ("Could not cli_initialize\n"));
result = NT_STATUS_NO_MEMORY;
goto done;
}
(*cli)->timeout = 10000; /* 10 seconds */
- (*cli)->fd = sockfd;
- (*cli)->desthost = talloc_strdup((*cli), controller);
- if ((*cli)->desthost == NULL) {
- result = NT_STATUS_NO_MEMORY;
- goto done;
- }
(*cli)->use_kerberos = True;