git.samba.org
/
obnox
/
samba-ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0491f03
)
s3-groupdb: fix enum_aliasmem in ldb branch.
author
Günther Deschner
<gd@samba.org>
Sun, 7 Jun 2009 09:23:09 +0000
(11:23 +0200)
committer
Karolin Seeger
<kseeger@samba.org>
Fri, 12 Jun 2009 06:49:58 +0000
(08:49 +0200)
It is totally valid to have an alias with no members.
This fixes bug #6465.
Tridge, please check.
Found by RPC-SAMR torture test.
Guenther
source3/groupdb/mapping_ldb.c
patch
|
blob
|
history
diff --git
a/source3/groupdb/mapping_ldb.c
b/source3/groupdb/mapping_ldb.c
index 97f84f1a803320cb275fb2bf4362c734acf316ea..6bdbe5921255078e3ec1edf5b61f80cbce70919a 100644
(file)
--- a/
source3/groupdb/mapping_ldb.c
+++ b/
source3/groupdb/mapping_ldb.c
@@
-523,7
+523,7
@@
static NTSTATUS enum_aliasmem(const DOM_SID *alias, DOM_SID **sids, size_t *num)
el = ldb_msg_find_element(res->msgs[0], "member");
if (el == NULL) {
talloc_free(dn);
- return NT_STATUS_
INTERNAL_DB_CORRUPTION
;
+ return NT_STATUS_
OK
;
}
for (i=0;i<el->num_values;i++) {