summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-06-17 20:50:36 +0200
committerMichael Adam <obnox@samba.org>2010-06-21 12:38:25 +0200
commit3f99ff104a210bd307818746da922408f151cd18 (patch)
tree1db96452116ea477ecf852617679bfb56dd5142e
parent276a1a7fec1432bde870448f247ef710554c3ab8 (diff)
downloadsamba-3f99ff104a210bd307818746da922408f151cd18.tar.gz
samba-3f99ff104a210bd307818746da922408f151cd18.tar.bz2
samba-3f99ff104a210bd307818746da922408f151cd18.zip
s3:idmap_ldap: remove unreached code (and explicit error return code)
-rw-r--r--source3/winbindd/idmap_ldap.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source3/winbindd/idmap_ldap.c b/source3/winbindd/idmap_ldap.c
index fd714a0a7f..e7928bf3f7 100644
--- a/source3/winbindd/idmap_ldap.c
+++ b/source3/winbindd/idmap_ldap.c
@@ -445,11 +445,7 @@ static NTSTATUS idmap_ldap_allocate_id(struct unixid *xid)
if ( ! (id_str = smbldap_talloc_single_attribute(idmap_alloc_ldap->smbldap_state->ldap_struct,
entry, type, ctx))) {
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;
}