mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 11:40:30 +00:00
wldap32: Fix server controls lookup logic.
This fixes 'supported == user_count' comparison if the server has duplicate control OIDs in the returned list. Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
bd34ffbdda
commit
6df25aafbb
|
@ -439,10 +439,15 @@ static BOOL is_supported_server_ctrls( WLDAP32_LDAP *ld, LDAPControl **ctrls )
|
|||
|
||||
for (n = 0; n < user_count; n++)
|
||||
{
|
||||
TRACE("looking for %s\n", debugstr_a(ctrls[n]->ldctl_oid));
|
||||
|
||||
for (i = 0; i < server_count; i++)
|
||||
{
|
||||
if (!strncmp( ctrls[n]->ldctl_oid, ld->ld_server_ctrls[i]->bv_val, ld->ld_server_ctrls[i]->bv_len))
|
||||
{
|
||||
supported++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue