summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbindd_async.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-12-16 01:52:06 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:32 -0500
commitf0c7dc544bccda5eb87f56cbd5a49ca8d8372cb1 (patch)
treed95e1ca463384937f657e36eaed5202758898113 /source3/nsswitch/winbindd_async.c
parentbf8988feaf818782d708da69d186295e140ade10 (diff)
downloadsamba-f0c7dc544bccda5eb87f56cbd5a49ca8d8372cb1.tar.gz
samba-f0c7dc544bccda5eb87f56cbd5a49ca8d8372cb1.tar.bz2
samba-f0c7dc544bccda5eb87f56cbd5a49ca8d8372cb1.zip
r20207: Fix a couple more places where extra_data was
being talloc'ed off the NULL context instead of being malloced. Jeremy. (This used to be commit 47bdeb4efeaa5a441ad2d39bb3b94d72263e66e4)
Diffstat (limited to 'source3/nsswitch/winbindd_async.c')
-rw-r--r--source3/nsswitch/winbindd_async.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/nsswitch/winbindd_async.c b/source3/nsswitch/winbindd_async.c
index 93dea6f48c..3319fda406 100644
--- a/source3/nsswitch/winbindd_async.c
+++ b/source3/nsswitch/winbindd_async.c
@@ -1135,13 +1135,13 @@ enum winbindd_result winbindd_dual_getsidaliases(struct winbindd_domain *domain,
}
- if (!print_sidlist(NULL, sids, num_sids, &sidstr, &len)) {
+ if (!print_sidlist(state->mem_ctx, sids, num_sids, &sidstr, &len)) {
DEBUG(0, ("Could not print_sidlist\n"));
state->response.extra_data.data = NULL;
return WINBINDD_ERROR;
}
- state->response.extra_data.data = sidstr;
+ state->response.extra_data.data = SMB_STRDUP(sidstr);
if (state->response.extra_data.data != NULL) {
DEBUG(10, ("aliases_list: %s\n",