diff options
author | Rafal Szczesniak <mimir@samba.org> | 2006-12-17 13:01:35 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:29:24 -0500 |
commit | 56d768842e2761c42d6b3744f7479352456a90a4 (patch) | |
tree | c299b349514a4afc3f98656c62b366da05dca0c2 /source4 | |
parent | c5571c7c3964975d5c1f1c347b8629577d2e86c6 (diff) | |
download | samba-56d768842e2761c42d6b3744f7479352456a90a4.tar.gz samba-56d768842e2761c42d6b3744f7479352456a90a4.tar.bz2 samba-56d768842e2761c42d6b3744f7479352456a90a4.zip |
r20222: return status unsuccessful when null pointers are returned
from lookup call.
rafal
(This used to be commit 0eb605cf423faee2111b3d70cef1c578564a0fb5)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/libnet/libnet_lookup.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/libnet/libnet_lookup.c b/source4/libnet/libnet_lookup.c index c853885572..e8bceb9218 100644 --- a/source4/libnet/libnet_lookup.c +++ b/source4/libnet/libnet_lookup.c @@ -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; |