summaryrefslogtreecommitdiff
path: root/source3/groupdb
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2003-02-18 07:05:02 +0000
committerMartin Pool <mbp@samba.org>2003-02-18 07:05:02 +0000
commit188c5195ede9825f30845f4aab549390ac67887e (patch)
tree160661e5ac294c78623bab30d9c89241096ac71b /source3/groupdb
parent059c4fd81db2b50cd9748577bd1d84e2acd9c330 (diff)
downloadsamba-188c5195ede9825f30845f4aab549390ac67887e.tar.gz
samba-188c5195ede9825f30845f4aab549390ac67887e.tar.bz2
samba-188c5195ede9825f30845f4aab549390ac67887e.zip
Check return code of string_to_sid. (Merge from HEAD)
(This used to be commit 5d09aea6f78aa247dbd77617c93c2a1dd2e2702f)
Diffstat (limited to 'source3/groupdb')
-rw-r--r--source3/groupdb/mapping.c6
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);