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

abartlet at samba.org abartlet at samba.org
Tue Jan 2 11:36:52 GMT 2007


Author: abartlet
Date: 2007-01-02 11:36:50 +0000 (Tue, 02 Jan 2007)
New Revision: 20467

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

Log:
Don't segfault if we don't have an OID map

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-01-02 11:17:38 UTC (rev 20466)
+++ branches/SAMBA_4_0/source/lib/ldb/tools/ad2oLschema.c	2007-01-02 11:36:50 UTC (rev 20467)
@@ -332,7 +332,7 @@
 		}
 
 		/* We might have been asked to remap this oid, due to a conflict */
-		for (j=0; oid && oid_map[j].old_oid; j++) {
+		for (j=0; oid && oid_map && oid_map[j].old_oid; j++) {
 			if (strcmp(oid, oid_map[j].old_oid) == 0) {
 				oid =  oid_map[j].new_oid;
 				break;



More information about the samba-cvs mailing list