correct stupid mistake in ldap_match_present, patch from Thomas Walpuski!

This commit is contained in:
leitner
2002-05-11 17:47:55 +00:00
parent 57c79e45e6
commit 7e80e0b036

View File

@@ -44,8 +44,8 @@ int ldap_match_present(uint32 ofs,uint32 attrofs) {
uint32 j,k;
if (attrofs==dn_ofs || attrofs==objectClass_ofs) return 1;
uint32_unpack(map+ofs,&j);
for (k=4; k<j; ++k)
if (uint32_read(map+ofs+k*4)==attrofs)
for (k=2; k<j; ++k)
if (uint32_read(map+ofs+k*8)==attrofs)
return 1;
return 0;
}