summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-01-23 13:50:59 +0100
committerVolker Lendecke <vl@samba.org>2010-01-23 16:28:11 +0100
commit7fe66e06c4df575c410d4d70ff38f120c2f4363b (patch)
tree3b87b6e1c14d06c2601e5d8c7f3c29dbbdc0b7da
parent7c687665eaf16b0c6f83c130f6d9e5459e0b2a32 (diff)
downloadsamba-7fe66e06c4df575c410d4d70ff38f120c2f4363b.tar.gz
samba-7fe66e06c4df575c410d4d70ff38f120c2f4363b.tar.bz2
samba-7fe66e06c4df575c410d4d70ff38f120c2f4363b.zip
libcli/security: Convert some strtol calls to strtoul
This tightens the dom_sid_parse syntax check a bit: "--" would have been allowed in sid string
-rw-r--r--libcli/security/dom_sid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcli/security/dom_sid.c b/libcli/security/dom_sid.c
index 7cb50c926c..9952977fa9 100644
--- a/libcli/security/dom_sid.c
+++ b/libcli/security/dom_sid.c
@@ -96,13 +96,13 @@ bool dom_sid_parse(const char *sidstr, struct dom_sid *ret)
sidstr += 2;
- rev = strtol(sidstr, &p, 10);
+ rev = strtoul(sidstr, &p, 10);
if (*p != '-') {
return false;
}
sidstr = p+1;
- ia = strtol(sidstr, &p, 10);
+ ia = strtoul(sidstr, &p, 10);
if (p == sidstr) {
return false;
}