From: Michael Adam Date: Thu, 17 Jun 2010 18:48:53 +0000 (+0200) Subject: s3:idmap_ldap: remove unreached code (and explicit error return code) X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwip.git;a=commitdiff_plain;h=b3ed805501f2aee9552a75b343804886701a4b62 s3:idmap_ldap: remove unreached code (and explicit error return code) --- diff --git a/source3/winbindd/idmap_ldap.c b/source3/winbindd/idmap_ldap.c index 81562ce88ca8..d6f8ceb3e060 100644 --- 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; }