diff options
author | Jeremy Allison <jra@samba.org> | 2006-12-16 01:52:06 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2006-12-16 01:52:06 +0000 |
commit | 84fa20bc1bea33425b06dbc43ca456bb945bf3a8 (patch) | |
tree | 5779cb9f076f46d2208002f022dbfda0992448eb /source/nsswitch/winbindd_async.c | |
parent | 37151b7069d16b12aa7f5f9859642972b39d67e3 (diff) | |
download | samba-84fa20bc1bea33425b06dbc43ca456bb945bf3a8.tar.gz samba-84fa20bc1bea33425b06dbc43ca456bb945bf3a8.tar.xz samba-84fa20bc1bea33425b06dbc43ca456bb945bf3a8.zip |
r20207: Fix a couple more places where extra_data was
being talloc'ed off the NULL context instead
of being malloced.
Jeremy.
Diffstat (limited to 'source/nsswitch/winbindd_async.c')
-rw-r--r-- | source/nsswitch/winbindd_async.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/nsswitch/winbindd_async.c b/source/nsswitch/winbindd_async.c index 93dea6f48cb..3319fda4063 100644 --- a/source/nsswitch/winbindd_async.c +++ b/source/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", |