The parsed timeval is unsigned.
This commit is contained in:
@@ -293,8 +293,8 @@ static u_int32_t get_time(private_settings_t *this, char *key, u_int32_t def, ..
|
|||||||
if (value)
|
if (value)
|
||||||
{
|
{
|
||||||
errno = 0;
|
errno = 0;
|
||||||
timeval = strtol(value, &endptr, 10);
|
timeval = strtoul(value, &endptr, 10);
|
||||||
if (errno == 0 && timeval >= 0)
|
if (errno == 0)
|
||||||
{
|
{
|
||||||
switch (*endptr)
|
switch (*endptr)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user