1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

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

(This used to be commit c0276c373c)
This commit is contained in:
Andrew Bartlett 2007-01-02 11:36:50 +00:00 committed by Gerald (Jerry) Carter
parent e18585ba39
commit 3a6da3c60f

View File

@ -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;