summaryrefslogtreecommitdiff
path: root/src/providers/ldap
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-09-29 20:00:58 +0200
committerStephen Gallagher <sgallagh@redhat.com>2011-10-03 10:48:37 -0400
commit95d3cb8d4ff2e3e8fdc186f2ebf617fd29ddfdec (patch)
tree5cf4c7c585dda5455555334d3c32ff56ddce86d2 /src/providers/ldap
parentc98298029c51fdbc727536fec7a27795184d04e4 (diff)
downloadsssd-95d3cb8d4ff2e3e8fdc186f2ebf617fd29ddfdec.tar.gz
sssd-95d3cb8d4ff2e3e8fdc186f2ebf617fd29ddfdec.tar.bz2
sssd-95d3cb8d4ff2e3e8fdc186f2ebf617fd29ddfdec.zip
Use explicit base 10 for converting strings to integers
https://fedorahosted.org/sssd/ticket/1013
Diffstat (limited to 'src/providers/ldap')
-rw-r--r--src/providers/ldap/ldap_id.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/providers/ldap/ldap_id.c b/src/providers/ldap/ldap_id.c
index 2d8aefff..46f68897 100644
--- a/src/providers/ldap/ldap_id.c
+++ b/src/providers/ldap/ldap_id.c
@@ -235,7 +235,7 @@ static void users_get_done(struct tevent_req *subreq)
break;
case BE_FILTER_IDNUM:
- uid = (uid_t) strtouint32(state->name, &endptr, 0);
+ uid = (uid_t) strtouint32(state->name, &endptr, 10);
if (errno || *endptr || (state->name == endptr)) {
tevent_req_error(req, errno ? errno : EINVAL);
return;
@@ -478,7 +478,7 @@ static void groups_get_done(struct tevent_req *subreq)
break;
case BE_FILTER_IDNUM:
- gid = (gid_t) strtouint32(state->name, &endptr, 0);
+ gid = (gid_t) strtouint32(state->name, &endptr, 10);
if (errno || *endptr || (state->name == endptr)) {
tevent_req_error(req, errno ? errno : EINVAL);
return;