From: Timo Sirainen Date: Wed, 29 Jun 2016 20:54:46 +0000 (+0300) Subject: auth: Fixed checking if delay_until is too large X-Git-Tag: 2.3.0.rc1~3374 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2fa0de8e558ce3380bfb9021d607b2ca6a9d0573;p=thirdparty%2Fdovecot%2Fcore.git auth: Fixed checking if delay_until is too large --- diff --git a/src/auth/auth-request.c b/src/auth/auth-request.c index 4e9a428b92..072622d7c1 100644 --- a/src/auth/auth-request.c +++ b/src/auth/auth-request.c @@ -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;