diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/groupdb/mapping_tdb.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source3/groupdb/mapping_tdb.c b/source3/groupdb/mapping_tdb.c index 394a2f0b22..1dea9e482e 100644 --- a/source3/groupdb/mapping_tdb.c +++ b/source3/groupdb/mapping_tdb.c @@ -1006,6 +1006,19 @@ static int convert_ldb_record(TDB_CONTEXT *ltdb, TDB_DATA key, TALLOC_FREE(name); } + if (map->nt_name == NULL) { + errno = EIO; + goto failed; + } + + if (map->comment == NULL) { + map->comment = talloc_strdup(map, ""); + } + if (map->comment == NULL) { + errno = ENOMEM; + goto failed; + } + if (!add_mapping_entry(map, 0)) { errno = EIO; goto failed; |