Dmitry Timoshkov : adsldp: Ignore attribute definitions without NAME.

Alexandre Julliard julliard at winehq.org
Tue Mar 31 16:44:24 CDT 2020


Module: wine
Branch: master
Commit: 6591ddd58c9262bca5e4b619b36fb6a16e4c6718
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=6591ddd58c9262bca5e4b619b36fb6a16e4c6718

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Tue Mar 31 19:00:15 2020 +0800

adsldp: Ignore attribute definitions without NAME.

Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/adsldp/schema.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/dlls/adsldp/schema.c b/dlls/adsldp/schema.c
index bff754be7a..e91f817fc9 100644
--- a/dlls/adsldp/schema.c
+++ b/dlls/adsldp/schema.c
@@ -36,8 +36,6 @@ static const struct attribute_type *find_schema_type(const WCHAR *name, const st
 
     for (i = 0; i < count; i++)
     {
-        if (!at[i].name) continue;
-
         off = 0;
 
         for (n = 0; n < at[i].name_count; n++)
@@ -360,6 +358,12 @@ struct attribute_type *load_schema(LDAP *ld, ULONG *at_count)
                     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),
                       debugstr_w(at[count].name), at[count].name_count, debugstr_w(at[count].syntax), at[count].single_value);
 




More information about the wine-cvs mailing list