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.2.26~542 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=82f1dbba4e82abdb2abdaf8e9e46fc9e6c624365;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;