diff options
author | Volker Lendecke <vl@samba.org> | 2011-03-23 13:11:26 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-03-23 12:19:56 +0100 |
commit | e6d76ba832d87e59a50a5c044ecba5a6dc611958 (patch) | |
tree | fbd3a005e1d22f9a986a81a4e17fa3cdbe4943f9 /source3/winbindd | |
parent | 429e84f0d48f6e711b2067f422b9a3ac596ba0a4 (diff) | |
download | samba-e6d76ba832d87e59a50a5c044ecba5a6dc611958.tar.gz samba-e6d76ba832d87e59a50a5c044ecba5a6dc611958.tar.bz2 samba-e6d76ba832d87e59a50a5c044ecba5a6dc611958.zip |
s3: Fix Coverity ID 2203, NULL_RETURNS
Diffstat (limited to 'source3/winbindd')
-rw-r--r-- | source3/winbindd/wb_gettoken.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/winbindd/wb_gettoken.c b/source3/winbindd/wb_gettoken.c index 100a7b5d68..2f4cec811c 100644 --- a/source3/winbindd/wb_gettoken.c +++ b/source3/winbindd/wb_gettoken.c @@ -139,6 +139,10 @@ static void wb_gettoken_gotlocalgroups(struct tevent_req *subreq) return; } domain = find_domain_from_sid_noinit(get_global_sam_sid()); + if (domain == NULL) { + tevent_req_nterror(req, NT_STATUS_INTERNAL_ERROR); + return; + } if (!wb_add_rids_to_sids(state, &state->num_sids, &state->sids, &domain->sid, num_rids, rids)) { tevent_req_nterror(req, NT_STATUS_NO_MEMORY); |