git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de77531
)
r15009: Add a check for NULL
author
Volker Lendecke
<vlendec@samba.org>
Sun, 9 Apr 2006 10:17:43 +0000
(10:17 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 16:15:56 +0000
(11:15 -0500)
(This used to be commit
0a7d4f1ab109f57f5b5f4c1e83ad346b13b50778
)
source3/passdb/pdb_interface.c
patch
|
blob
|
history
diff --git
a/source3/passdb/pdb_interface.c
b/source3/passdb/pdb_interface.c
index b6e635cca190774c52b7831f76b0f766d0916dd6..b3522e33a7f5a39a46fd96f78eddbc6652cf3185 100644
(file)
--- 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;