summaryrefslogtreecommitdiff
path: root/source4/libcli/util/dom_sid.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libcli/util/dom_sid.c')
-rw-r--r--source4/libcli/util/dom_sid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/util/dom_sid.c b/source4/libcli/util/dom_sid.c
index 9b8b45e302..0ca4cd731f 100644
--- a/source4/libcli/util/dom_sid.c
+++ b/source4/libcli/util/dom_sid.c
@@ -79,7 +79,7 @@ struct dom_sid *dom_sid_parse_talloc(TALLOC_CTX *mem_ctx, const char *sidstr)
return NULL;
}
sidstr++;
- ret->sub_auths[i] = strtol(sidstr, &p, 10);
+ ret->sub_auths[i] = strtoul(sidstr, &p, 10);
if (p == sidstr) {
return NULL;
}