From: Stefan Metzmacher Date: Tue, 23 Jan 2018 22:52:59 +0000 (+0100) Subject: winbindd: initialize type = SID_NAME_UNKNOWN in wb_lookupsids_single_done() X-Git-Tag: tevent-0.9.36~51 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b5ffa0e21f74fa0c452df38cf50e542eb278562d;p=thirdparty%2Fsamba.git winbindd: initialize type = SID_NAME_UNKNOWN in wb_lookupsids_single_done() 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 Reviewed-by: Ralph Boehme --- diff --git a/source3/winbindd/wb_lookupsids.c b/source3/winbindd/wb_lookupsids.c index 6a4ad68e389..bd90c43bbe9 100644 --- a/source3/winbindd/wb_lookupsids.c +++ b/source3/winbindd/wb_lookupsids.c @@ -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;