]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Import entry_get fix from HEAD
authorHoward Chu <hyc@openldap.org>
Wed, 2 Feb 2005 14:51:05 +0000 (14:51 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 2 Feb 2005 14:51:05 +0000 (14:51 +0000)
servers/slapd/back-ldap/search.c

index 31d5e190b77b7627a91fe356016c3e170214caa1..d09c550b837ebf3d61cc4c7781e83b75673eb3ef 100644 (file)
@@ -681,7 +681,7 @@ ldap_back_entry_get(
 
 retry:
        rc = ldap_search_ext_s(lc->ld, mdn.bv_val, LDAP_SCOPE_BASE, filter,
-                               gattr, 0, NULL, NULL, LDAP_NO_LIMIT,
+                               at ? gattr : NULL, 0, NULL, NULL, LDAP_NO_LIMIT,
                                LDAP_NO_LIMIT, &result);
        if ( rc != LDAP_SUCCESS ) {
                if ( rc == LDAP_SERVER_DOWN && do_retry ) {