1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r20222: return status unsuccessful when null pointers are returned

from lookup call.

rafal
This commit is contained in:
Rafal Szczesniak 2006-12-17 13:01:35 +00:00 committed by Gerald (Jerry) Carter
parent 58ba6ec195
commit 0eb605cf42

View File

@ -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;