From a90d0527752cc9769bdcee9a488ed7cb9c3bbf29 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 23 Aug 2007 20:27:10 +0000 Subject: [PATCH] forgot one commit --- clients/tools/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) -- 2.39.5