summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-04-09 10:17:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:56 -0500
commit4cde26cfc9be73785ac78aa962e68ccccd7cf90d (patch)
tree42b2c2bd12816b660277834f48e75ac0a9ffdacd
parentde7753141c627539b09d0b19ac4661623b0bd365 (diff)
downloadsamba-4cde26cfc9be73785ac78aa962e68ccccd7cf90d.tar.gz
samba-4cde26cfc9be73785ac78aa962e68ccccd7cf90d.tar.bz2
samba-4cde26cfc9be73785ac78aa962e68ccccd7cf90d.zip
r15009: Add a check for NULL
(This used to be commit 0a7d4f1ab109f57f5b5f4c1e83ad346b13b50778)
-rw-r--r--source3/passdb/pdb_interface.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/passdb/pdb_interface.c b/source3/passdb/pdb_interface.c
index b6e635cca1..b3522e33a7 100644
--- a/source3/passdb/pdb_interface.c
+++ b/source3/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;