From: Volker Lendecke Date: Fri, 17 Mar 2017 12:52:57 +0000 (+0100) Subject: s3:winbind: Use the correct talloc context for user information X-Git-Tag: tdb-1.3.13~438 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ece5e67bbc027432aeb3d97205ef093a0acda8d5;p=thirdparty%2Fsamba.git s3:winbind: Use the correct talloc context for user information This fixes the substitution for 'template homedir'. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12699 Signed-off-by: Volker Lendecke Reviewed-by: Andreas Schneider Autobuild-User(master): Volker Lendecke Autobuild-Date(master): Sat Mar 18 19:47:40 CET 2017 on sn-devel-144 --- diff --git a/source3/winbindd/wb_queryuser.c b/source3/winbindd/wb_queryuser.c index be4d3d3e665..69b4c8dad5a 100644 --- a/source3/winbindd/wb_queryuser.c +++ b/source3/winbindd/wb_queryuser.c @@ -329,7 +329,7 @@ static void wb_queryuser_got_group_name(struct tevent_req *subreq) NTSTATUS status; const char *domain_name; - status = wb_lookupsid_recv(subreq, state, &type, &domain_name, + status = wb_lookupsid_recv(subreq, state->info, &type, &domain_name, &state->info->primary_group_name); TALLOC_FREE(subreq); if (tevent_req_nterror(req, status)) {