summaryrefslogtreecommitdiff
path: root/src/responder/common
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/responder/common
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/responder/common')
-rw-r--r--src/responder/common/negcache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/responder/common/negcache.c b/src/responder/common/negcache.c
index d8c4c269..3926574a 100644
--- a/src/responder/common/negcache.c
+++ b/src/responder/common/negcache.c
@@ -90,7 +90,7 @@ static int sss_ncache_check_str(struct sss_nc_ctx *ctx, char *str, int ttl)
}
errno = 0;
- timestamp = strtoull((const char *)data.dptr, &ep, 0);
+ timestamp = strtoull((const char *)data.dptr, &ep, 10);
if (errno != 0 || *ep != '\0') {
/* Malformed entry, remove it and return no entry */
expired = true;
@@ -330,7 +330,7 @@ static int delete_permanent(struct tdb_context *tdb,
}
errno = 0;
- timestamp = strtoull((const char *)data.dptr, &ep, 0);
+ timestamp = strtoull((const char *)data.dptr, &ep, 10);
if (errno != 0 || *ep != '\0') {
/* Malformed entry, remove it */
remove_key = true;