From 3f99ff104a210bd307818746da922408f151cd18 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 17 Jun 2010 20:50:36 +0200 Subject: s3:idmap_ldap: remove unreached code (and explicit error return code) --- source3/winbindd/idmap_ldap.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'source3/winbindd/idmap_ldap.c') 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; } -- cgit