]> git.sur5r.net Git - openldap/commitdiff
forgot one commit
authorPierangelo Masarati <ando@openldap.org>
Thu, 23 Aug 2007 20:27:10 +0000 (20:27 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 23 Aug 2007 20:27:10 +0000 (20:27 +0000)
clients/tools/common.c

index 0b46597e4181f040e5bd4117a6d9e229da6e70b1..8c63639c858929314e4c45b160a614af17d9d7eb 100644 (file)
@@ -1378,8 +1378,8 @@ tool_bind( LDAP *ld )
                        int expire, grace, len = 0;
                        LDAPPasswordPolicyError pErr = -1;
                        
-                       ctrl = ldap_find_control( LDAP_CONTROL_PASSWORDPOLICYRESPONSE,
-                               ctrls );
+                       ctrl = ldap_control_find( LDAP_CONTROL_PASSWORDPOLICYRESPONSE,
+                               ctrls, NULL );
 
                        if ( ctrl && ldap_parse_passwordpolicy_control( ld, ctrl,
                                &expire, &grace, &pErr ) == LDAP_SUCCESS )