diff options
author | Martin Pool <mbp@samba.org> | 2003-02-18 01:05:56 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2003-02-18 01:05:56 +0000 |
commit | 335fbbfbc957dea02c37152ec690cdcf54040ae1 (patch) | |
tree | b64b78a58a3f890189dff12fc23742ddf9029902 /source3 | |
parent | b70258af01098cf70d3248ec9569a9fc493424d9 (diff) | |
download | samba-335fbbfbc957dea02c37152ec690cdcf54040ae1.tar.gz samba-335fbbfbc957dea02c37152ec690cdcf54040ae1.tar.xz samba-335fbbfbc957dea02c37152ec690cdcf54040ae1.zip |
add_initial_entry should fail if string_to_sid fails.
(This used to be commit bb095dc28d8369457286225ac63e03070889f394)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/groupdb/mapping.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/groupdb/mapping.c b/source3/groupdb/mapping.c index 3809abc37a..272783608c 100644 --- a/source3/groupdb/mapping.c +++ b/source3/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); |