From 0eb605cf423faee2111b3d70cef1c578564a0fb5 Mon Sep 17 00:00:00 2001 From: Rafal Szczesniak Date: Sun, 17 Dec 2006 13:01:35 +0000 Subject: [PATCH] r20222: return status unsuccessful when null pointers are returned from lookup call. rafal --- source/libnet/libnet_lookup.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/libnet/libnet_lookup.c b/source/libnet/libnet_lookup.c index c853885572c..e8bceb9218f 100644 --- a/source/libnet/libnet_lookup.c +++ b/source/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; -- 2.11.4.GIT