s3:winbind: Use the correct talloc context for user information
authorVolker Lendecke <vl@samba.org>
Fri, 17 Mar 2017 12:52:57 +0000 (13:52 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 20 Apr 2017 10:23:16 +0000 (12:23 +0200)
This fixes the substitution for 'template homedir'.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12699

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Sat Mar 18 19:47:40 CET 2017 on sn-devel-144

(cherry picked from commit ece5e67bbc027432aeb3d97205ef093a0acda8d5)

source3/winbindd/wb_queryuser.c

index be4d3d3e6652af9b767344c8c7a1f9ae8201bcee..69b4c8dad5aa4a65414a3f5cd47383d923df9c66 100644 (file)
@@ -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)) {