winbind: Initialize "expired" parameter to idmap_cache_xid2sid
authorVolker Lendecke <vl@samba.org>
Tue, 26 Feb 2019 11:52:28 +0000 (12:52 +0100)
committerVolker Lendecke <vl@samba.org>
Thu, 28 Feb 2019 12:57:23 +0000 (12:57 +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

source3/winbindd/wb_xids2sids.c

index 9e622529c17c449adfbdced7e7551896fc71f026..386ac3ef0ed23d1e2f6cced010102275c7b39de6 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: