mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
r20222: return status unsuccessful when null pointers are returned
from lookup call. rafal
This commit is contained in:
parent
58ba6ec195
commit
0eb605cf42
@ -418,7 +418,9 @@ NTSTATUS libnet_LookupName_recv(struct composite_context *c, TALLOC_CTX *mem_ctx
|
||||
struct lsa_RefDomainList *domains = s->lookup.out.domains;
|
||||
struct lsa_TransSidArray *sids = s->lookup.out.sids;
|
||||
|
||||
/* TODO: verify if returned pointers are non-null */
|
||||
if (domains == NULL || sids == NULL) {
|
||||
composite_error(c, NT_STATUS_UNSUCCESSFUL);
|
||||
}
|
||||
|
||||
if (sids->count > 0) {
|
||||
io->out.rid = sids->sids[0].rid;
|
||||
|
Loading…
Reference in New Issue
Block a user