From 3a6da3c60f07c6568537ba064ba7be80cf1d47f1 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 2 Jan 2007 11:36:50 +0000 Subject: r20467: Don't segfault if we don't have an OID map (This used to be commit c0276c373c51696b5168cdd1b048e1b9858baf62) --- source4/lib/ldb/tools/ad2oLschema.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/lib/ldb/tools/ad2oLschema.c b/source4/lib/ldb/tools/ad2oLschema.c index 875882659b..04b9efae8f 100644 --- a/source4/lib/ldb/tools/ad2oLschema.c +++ b/source4/lib/ldb/tools/ad2oLschema.c @@ -332,7 +332,7 @@ static struct schema_conv process_convert(struct ldb_context *ldb, enum convert_ } /* 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; -- cgit