git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
429e84f
)
s3: Fix Coverity ID 2203, NULL_RETURNS
author
Volker Lendecke
<vl@samba.org>
Wed, 23 Mar 2011 12:11:26 +0000
(13:11 +0100)
committer
Volker Lendecke
<vl@samba.org>
Wed, 23 Mar 2011 11:19:56 +0000
(12:19 +0100)
source3/winbindd/wb_gettoken.c
patch
|
blob
|
history
diff --git
a/source3/winbindd/wb_gettoken.c
b/source3/winbindd/wb_gettoken.c
index 100a7b5d683023edcc86f22e558f3264eb665431..2f4cec811cfd282c0fc1fe2da446ecdc9f0e71f0 100644
(file)
--- 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);