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:
c6a0b3f
)
s3:idmap_ldap: remove unreached code (and explicit error return code)
author
Michael Adam
<obnox@samba.org>
Thu, 17 Jun 2010 18:48:53 +0000
(20:48 +0200)
committer
Michael Adam
<obnox@samba.org>
Wed, 23 Jun 2010 10:22:20 +0000
(12:22 +0200)
source3/winbindd/idmap_ldap.c
patch
|
blob
|
history
diff --git
a/source3/winbindd/idmap_ldap.c
b/source3/winbindd/idmap_ldap.c
index 81562ce88ca8d5690c3abb67717363c3755c8fcf..d6f8ceb3e06051c4d9a1b4c2dcbca6be9fd1ef19 100644
(file)
--- a/
source3/winbindd/idmap_ldap.c
+++ b/
source3/winbindd/idmap_ldap.c
@@
-430,11
+430,7
@@
static NTSTATUS idmap_ldap_allocate_id(struct idmap_domain *dom,
entry, type, mem_ctx);
if (id_str == NULL) {
DEBUG(0,("%s attribute not found\n", type));
- goto done;
- }
- if ( ! id_str) {
- DEBUG(0,("Out of memory\n"));
- ret = NT_STATUS_NO_MEMORY;
+ ret = NT_STATUS_UNSUCCESSFUL;
goto done;
}