]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/deref.c
Prep for release
[openldap] / libraries / libldap / deref.c
index 1313adece5bb489c9f4125d3e0d78bbd502a0932..dc0a4de769f6d854b664b1c69d91eb555e6f3712 100644 (file)
@@ -1,7 +1,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2013 The OpenLDAP Foundation.
+ * Copyright 1998-2015 The OpenLDAP Foundation.
  * Portions Copyright 2008 Pierangelo Masarati.
  * All rights reserved.
  *
@@ -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 );