diff options
Diffstat (limited to 'src/providers/proxy')
-rw-r--r-- | src/providers/proxy/proxy_id.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/providers/proxy/proxy_id.c b/src/providers/proxy/proxy_id.c index ab2be353..3fe58f3a 100644 --- a/src/providers/proxy/proxy_id.c +++ b/src/providers/proxy/proxy_id.c @@ -1078,7 +1078,7 @@ void proxy_get_account_info(struct be_req *breq) } else { char *endptr; errno = 0; - uid = (uid_t)strtol(ar->filter_value, &endptr, 0); + uid = (uid_t) strtoul(ar->filter_value, &endptr, 0); if (errno || *endptr || (ar->filter_value == endptr)) { return proxy_reply(breq, DP_ERR_FATAL, EINVAL, "Invalid attr type"); @@ -1108,7 +1108,7 @@ void proxy_get_account_info(struct be_req *breq) } else { char *endptr; errno = 0; - gid = (gid_t)strtol(ar->filter_value, &endptr, 0); + gid = (gid_t) strtoul(ar->filter_value, &endptr, 0); if (errno || *endptr || (ar->filter_value == endptr)) { return proxy_reply(breq, DP_ERR_FATAL, EINVAL, "Invalid attr type"); |