]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/deref.c
fix years old cut'n'paste
[openldap] / libraries / libldap / deref.c
index 1313adece5bb489c9f4125d3e0d78bbd502a0932..cf124f1bf299c326d00961899db76bc1a6d212d9 100644 (file)
@@ -120,7 +120,7 @@ ldap_create_deref_control(
 
        ld->ld_errno = ldap_create_deref_control_value( ld, ds, &value );
        if ( ld->ld_errno == LDAP_SUCCESS ) {
-               ld->ld_errno = ldap_control_create( LDAP_CONTROL_PAGEDRESULTS,
+               ld->ld_errno = ldap_control_create( LDAP_CONTROL_X_DEREF,
                        iscritical, &value, 0, ctrlp );
                if ( ld->ld_errno != LDAP_SUCCESS ) {
                        LDAP_FREE( value.bv_val );