From fe9992a2d6d280e5621bd0f4af4d4a3bc64c3b27 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 9 Apr 2006 10:17:43 +0000 Subject: r15009: Add a check for NULL --- source/passdb/pdb_interface.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/passdb/pdb_interface.c b/source/passdb/pdb_interface.c index b6e635cca19..b3522e33a7f 100644 --- a/source/passdb/pdb_interface.c +++ b/source/passdb/pdb_interface.c @@ -1767,6 +1767,9 @@ NTSTATUS pdb_default_lookup_rids(struct pdb_methods *methods, if (lookup_global_sam_rid(names, rids[i], &name, &attrs[i], NULL)) { + if (name == NULL) { + return NT_STATUS_NO_MEMORY; + } names[i] = name; DEBUG(5,("lookup_rids: %s:%d\n", names[i], attrs[i])); have_mapped = True; -- cgit