]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/deref.c
Plug one-time leaks
[openldap] / libraries / libldap / deref.c
index a38d976e8786488357e27b8b31f9c9d55d1c65ef..2fc14ff35bbc77e9901bf036fd3570e591cbac3e 100644 (file)
@@ -1,7 +1,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2012 The OpenLDAP Foundation.
+ * Copyright 1998-2014 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 );