winbindd: initialize type = SID_NAME_UNKNOWN in wb_lookupsids_single_done()
authorStefan Metzmacher <metze@samba.org>
Tue, 23 Jan 2018 22:52:59 +0000 (23:52 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 21 Feb 2018 13:19:17 +0000 (14:19 +0100)
We check for !NT_STATUS_LOOKUP_ERR(), but wb_lookupsid_recv()
only initializes the results together with NT_STATUS_OK.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13280

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/winbindd/wb_lookupsids.c

index 6a4ad68e38935bd3751321cda27a98ab0fc4d4db..bd90c43bbe9c51615c15186c16e2956fb806524c 100644 (file)
@@ -513,7 +513,7 @@ static void wb_lookupsids_single_done(struct tevent_req *subreq)
                req, struct wb_lookupsids_state);
        const char *domain_name = NULL;
        const char *name = NULL;
-       enum lsa_SidType type;
+       enum lsa_SidType type = SID_NAME_UNKNOWN;
        uint32_t res_sid_index;
        uint32_t src_rid;