diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2011-09-29 20:00:58 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-10-03 10:48:37 -0400 |
commit | 95d3cb8d4ff2e3e8fdc186f2ebf617fd29ddfdec (patch) | |
tree | 5cf4c7c585dda5455555334d3c32ff56ddce86d2 /src/responder | |
parent | c98298029c51fdbc727536fec7a27795184d04e4 (diff) | |
download | sssd-95d3cb8d4ff2e3e8fdc186f2ebf617fd29ddfdec.tar.gz sssd-95d3cb8d4ff2e3e8fdc186f2ebf617fd29ddfdec.tar.xz sssd-95d3cb8d4ff2e3e8fdc186f2ebf617fd29ddfdec.zip |
Use explicit base 10 for converting strings to integers
https://fedorahosted.org/sssd/ticket/1013
Diffstat (limited to 'src/responder')
-rw-r--r-- | src/responder/common/negcache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/responder/common/negcache.c b/src/responder/common/negcache.c index d8c4c2698..3926574a1 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; |