1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

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

Andrew Bartlett
(This used to be commit e1536014a05645fd2300de5152e966aa1e067436)
This commit is contained in:
Andrew Bartlett 2007-04-23 07:23:45 +00:00 committed by Gerald (Jerry) Carter
parent f72d4bfea1
commit 1222a1c456

View File

@ -325,6 +325,12 @@ static struct schema_conv process_convert(struct ldb_context *ldb, enum convert_
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++;