samba-cvs.cvs
[Top] [All Lists]

svn commit: samba r22475 - in branches/SAMBA_4_0/source/lib/ldb/tools: .

Subject: svn commit: samba r22475 - in branches/SAMBA_4_0/source/lib/ldb/tools: .
From:
Date: Mon, 23 Apr 2007 07:23:46 +0000 GMT
Author: abartlet
Date: 2007-04-23 07:23:45 +0000 (Mon, 23 Apr 2007)
New Revision: 22475

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22475

Log:
Rather than segfault, show the name of the malformed entry.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/lib/ldb/tools/ad2oLschema.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/tools/ad2oLschema.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/tools/ad2oLschema.c       2007-04-23 
07:22:16 UTC (rev 22474)
+++ branches/SAMBA_4_0/source/lib/ldb/tools/ad2oLschema.c       2007-04-23 
07:23:45 UTC (rev 22475)
@@ -325,6 +325,12 @@
                char *schema_entry = NULL;
                int j;
 
+               if (!name) {
+                       printf("Failed to find lDAPDisplayName for schema DN: 
%s\n", ldb_dn_get_linearized(msg->dn));
+                       ret.failures = 1;
+                       continue;
+               }
+
                /* We have been asked to skip some attributes/objectClasses */
                if (attrs_skip && str_list_check_ci(attrs_skip, name)) {
                        ret.skipped++;

<Prev in Thread] Current Thread [Next in Thread>
  • svn commit: samba r22475 - in branches/SAMBA_4_0/source/lib/ldb/tools: ., abartlet <=