s3:idmap_ldap: remove unreached code (and explicit error return code)
authorMichael Adam <obnox@samba.org>
Thu, 17 Jun 2010 18:48:53 +0000 (20:48 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 23 Jun 2010 10:22:20 +0000 (12:22 +0200)
source3/winbindd/idmap_ldap.c

index 81562ce88ca8d5690c3abb67717363c3755c8fcf..d6f8ceb3e06051c4d9a1b4c2dcbca6be9fd1ef19 100644 (file)
@@ -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;
        }