diff --git a/libcli/security/dom_sid.c b/libcli/security/dom_sid.c index 9952977fa9e..7cb50c926c4 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 = strtoul(sidstr, &p, 10); + rev = strtol(sidstr, &p, 10); if (*p != '-') { return false; } sidstr = p+1; - ia = strtoul(sidstr, &p, 10); + ia = strtol(sidstr, &p, 10); if (p == sidstr) { return false; }