summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2018-01-23 23:52:59 +0100
committerKarolin Seeger <kseeger@samba.org>2018-04-25 08:49:13 +0200
commit7a636de5fabdf1f46fe9f7178114540b48e00b39 (patch)
tree84a0f6efaacd6e58dc4d529273bc5276fec78d7b /source3
parentd1869c670fb2d9ccca0c2ad17c5901d42449d54e (diff)
downloadsamba-7a636de5fabdf1f46fe9f7178114540b48e00b39.tar.gz
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 <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> (cherry picked from commit b5ffa0e21f74fa0c452df38cf50e542eb278562d)
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/wb_lookupsids.c2
1 files changed, 1 insertions, 1 deletions
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;