summaryrefslogtreecommitdiff
path: root/libcli/security/dom_sid.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-01-25 12:39:47 +0100
committerVolker Lendecke <vl@samba.org>2010-01-25 12:40:51 +0100
commita53a8ec45245353d978e6f845c41d76b2e12a3c6 (patch)
treed8e5e17391c685941e11b0328e86d78cd30d374f /libcli/security/dom_sid.c
parentb5d47263162856c423f484df44914271b76b1e53 (diff)
downloadsamba-a53a8ec45245353d978e6f845c41d76b2e12a3c6.tar.gz
samba-a53a8ec45245353d978e6f845c41d76b2e12a3c6.tar.bz2
samba-a53a8ec45245353d978e6f845c41d76b2e12a3c6.zip
Revert "libcli/security: Prohibit SID formats like S-1-5-32-+545"
This reverts commit 1fbeae41655b8305834f2149b1268077eba8633d. Apparently this breaks the build of Samba4
Diffstat (limited to 'libcli/security/dom_sid.c')
-rw-r--r--libcli/security/dom_sid.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/libcli/security/dom_sid.c b/libcli/security/dom_sid.c
index 8a2ed1fccc..6a046cd806 100644
--- a/libcli/security/dom_sid.c
+++ b/libcli/security/dom_sid.c
@@ -96,20 +96,12 @@ bool dom_sid_parse(const char *sidstr, struct dom_sid *ret)
sidstr += 2;
- if (!isdigit(sidstr[0])) {
- return false;
- }
-
rev = strtoul(sidstr, &p, 10);
if (*p != '-') {
return false;
}
sidstr = p+1;
- if (!isdigit(sidstr[0])) {
- return false;
- }
-
ia = strtoul(sidstr, &p, 10);
if (p == sidstr) {
return false;
@@ -139,11 +131,6 @@ bool dom_sid_parse(const char *sidstr, struct dom_sid *ret)
return false;
}
sidstr++;
-
- if (!isdigit(sidstr[0])) {
- return false;
- }
-
ret->sub_auths[i] = strtoul(sidstr, &p, 10);
if (p == sidstr) {
return false;