Skip to content

Commit

Permalink
auth: Fixed checking if delay_until is too large
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Jun 29, 2016
1 parent 7be1766 commit 9892356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auth/auth-request.c
Expand Up @@ -1697,7 +1697,7 @@ void auth_request_set_field(struct auth_request *request,
"Invalid delay_until timestamp '%s'", value);
} else if (timestamp <= ioloop_time) {
/* no more delays */
} else if (ioloop_time - timestamp > AUTH_REQUEST_MAX_DELAY_SECS) {
} else if (timestamp - ioloop_time > AUTH_REQUEST_MAX_DELAY_SECS) {
auth_request_log_error(request, AUTH_SUBSYS_DB,
"delay_until timestamp %s is too much in the future, failing", value);
request->failed = TRUE;
Expand Down

0 comments on commit 9892356

Please sign in to comment.