diff --git a/plugins/sudoers/timeout.c b/plugins/sudoers/timeout.c index 4a2162e177..d7c2a2d4db 100644 --- a/plugins/sudoers/timeout.c +++ b/plugins/sudoers/timeout.c @@ -94,11 +94,11 @@ parse_timeout(const char *timestr) l *= 60; break; } - if (l > INT_MAX - timeout) - goto overflow; } cp = ep; + if (l > INT_MAX - timeout) + goto overflow; timeout += (int)l; } while (*cp != '\0');