diff options
Diffstat (limited to 'source/groupdb')
-rw-r--r-- | source/groupdb/mapping.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/groupdb/mapping.c b/source/groupdb/mapping.c index 3809abc37a9..272783608c5 100644 --- a/source/groupdb/mapping.c +++ b/source/groupdb/mapping.c @@ -304,7 +304,11 @@ BOOL add_initial_entry(gid_t gid, const char *sid, enum SID_NAME_USE sid_name_us } map.gid=gid; - string_to_sid(&map.sid, sid); + if (!string_to_sid(&map.sid, sid)) { + DEBUG(0, ("string_to_sid failed: %s", sid)); + return False; + } + map.sid_name_use=sid_name_use; fstrcpy(map.nt_name, nt_name); fstrcpy(map.comment, comment); |