adsldp: Ignore attribute definitions without NAME.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4cdc333677
commit
6591ddd58c
|
@ -36,8 +36,6 @@ static const struct attribute_type *find_schema_type(const WCHAR *name, const st
|
||||||
|
|
||||||
for (i = 0; i < count; i++)
|
for (i = 0; i < count; i++)
|
||||||
{
|
{
|
||||||
if (!at[i].name) continue;
|
|
||||||
|
|
||||||
off = 0;
|
off = 0;
|
||||||
|
|
||||||
for (n = 0; n < at[i].name_count; n++)
|
for (n = 0; n < at[i].name_count; n++)
|
||||||
|
@ -360,6 +358,12 @@ struct attribute_type *load_schema(LDAP *ld, ULONG *at_count)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!at[count].name)
|
||||||
|
{
|
||||||
|
free_attribute_type(&at[count]);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
TRACE("oid %s, name %s, name_count %u, syntax %s, single-value %d\n", debugstr_w(at[count].oid),
|
TRACE("oid %s, name %s, name_count %u, syntax %s, single-value %d\n", debugstr_w(at[count].oid),
|
||||||
debugstr_w(at[count].name), at[count].name_count, debugstr_w(at[count].syntax), at[count].single_value);
|
debugstr_w(at[count].name), at[count].name_count, debugstr_w(at[count].syntax), at[count].single_value);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue