winbind: Initialize "expired" parameter to idmap_cache_xid2sid
authorVolker Lendecke <vl@samba.org>
Tue, 26 Feb 2019 11:52:28 +0000 (12:52 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 12 Mar 2019 11:25:42 +0000 (11:25 +0000)
The code in idmap_cache only touches its output parameters upon success

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13813
(cherry picked from commit 8c28c12702c0935a852c7fed6565987623f09fee)

source3/winbindd/wb_xids2sids.c

index 766092b2664c8da1b9bae1c25453008df7a1ef85..5be55d59b75927203ea47f268a2097ddef8a382c 100644 (file)
@@ -463,7 +463,7 @@ struct tevent_req *wb_xids2sids_send(TALLOC_CTX *mem_ctx,
 
                for (i=0; i<num_xids; i++) {
                        struct dom_sid sid = {0};
-                       bool ok, expired;
+                       bool ok, expired = true;
 
                        switch (xids[i].type) {
                            case ID_TYPE_UID: