diff options
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; |