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>
Wed, 13 Mar 2019 08:34:14 +0000 (08:34 +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 4aaabc1c15bec633b475fe1ad109a7aff543f52f..3267dfa0e81c361e47b3a4aca899df5698091fac 100644 (file)
@@ -466,7 +466,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: