summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-04-09 10:17:43 +0000
committerVolker Lendecke <vlendec@samba.org>2006-04-09 10:17:43 +0000
commitfe9992a2d6d280e5621bd0f4af4d4a3bc64c3b27 (patch)
tree0c65f914bb091c1a807bbafe76e515064e07750d
parentce17df0531b4d6fed93f6c6c130de0909bb7164a (diff)
downloadsamba-fe9992a2d6d280e5621bd0f4af4d4a3bc64c3b27.tar.gz
r15009: Add a check for NULL
-rw-r--r--source/passdb/pdb_interface.c3
1 files changed, 3 insertions, 0 deletions
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;