mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
Revert "libcli/security: Convert some strtol calls to strtoul"
This reverts commit 7fe66e06c4
.
This commit is contained in:
parent
fa47dbb57a
commit
d86d5be636
@ -96,13 +96,13 @@ bool dom_sid_parse(const char *sidstr, struct dom_sid *ret)
|
|||||||
|
|
||||||
sidstr += 2;
|
sidstr += 2;
|
||||||
|
|
||||||
rev = strtoul(sidstr, &p, 10);
|
rev = strtol(sidstr, &p, 10);
|
||||||
if (*p != '-') {
|
if (*p != '-') {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
sidstr = p+1;
|
sidstr = p+1;
|
||||||
|
|
||||||
ia = strtoul(sidstr, &p, 10);
|
ia = strtol(sidstr, &p, 10);
|
||||||
if (p == sidstr) {
|
if (p == sidstr) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user