]> git.sur5r.net Git - openldap/commitdiff
Fix SORTED_RESULTS check
authorHoward Chu <hyc@openldap.org>
Wed, 29 Aug 2007 23:57:55 +0000 (23:57 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 29 Aug 2007 23:57:55 +0000 (23:57 +0000)
servers/slapd/result.c

index a4bd781e78cc7ec52be54cbbb5a93c3e448ecd03..4368bf8e4ae170eabfd2032827cf0b0908622185 100644 (file)
@@ -239,7 +239,7 @@ send_ldap_controls( Operation *o, BerElement *ber, LDAPControl **c )
                if( rc == -1 ) return rc;
        }
 
-#ifdef SLAP_SORTED_RESULTS
+#ifdef SLAP_CONTROL_X_SORTEDRESULTS
        /* this is a hack to avoid having to modify op->s_ctrls */
        if( o->o_sortedresults ) {
                BerElementBuffer berbuf;