From: Pierangelo Masarati Date: Thu, 23 Aug 2007 20:27:10 +0000 (+0000) Subject: forgot one commit X-Git-Tag: OPENLDAP_REL_ENG_2_4_MP~127 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a90d0527752cc9769bdcee9a488ed7cb9c3bbf29;p=openldap forgot one commit --- diff --git a/clients/tools/common.c b/clients/tools/common.c index 0b46597e41..8c63639c85 100644 --- a/clients/tools/common.c +++ b/clients/tools/common.c @@ -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 )