[exim-dev] [Bug 1426] smtp_ratelimit_rcpt with factor less t…

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Git Commit
日付:  
To: exim-dev
古いトピック: [exim-dev] [Bug 1426] New: smtp_ratelimit_rcpt with factor less than 1.0
題目: [exim-dev] [Bug 1426] smtp_ratelimit_rcpt with factor less than 1.0
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1426

Git Commit <git@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |git@???





--- Comment #5 from Git Commit <git@???> 2014-08-11 19:17:08 ---
Git commit:
http://git.exim.org/exim.git/commitdiff/a40bc6c8fc409f7ad792d8de33c2d9eb1ca03e58

commit a40bc6c8fc409f7ad792d8de33c2d9eb1ca03e58
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Mon May 26 16:09:37 2014 +0100
Commit:     Jeremy Harris <jgh146exb@???>
CommitDate: Tue Jul 22 23:06:15 2014 +0100


    Ensure timer never set to zero for millisleep.  Bug 1426
---
 src/src/exim.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/src/src/exim.c b/src/src/exim.c
index 517b543..6a23364 100644
--- a/src/src/exim.c
+++ b/src/src/exim.c
@@ -310,7 +310,8 @@ struct itimerval itval;
itval.it_interval.tv_sec = 0;
itval.it_interval.tv_usec = 0;
itval.it_value.tv_sec = msec/1000;
-itval.it_value.tv_usec = (msec % 1000) * 1000;
+if ((itval.it_value.tv_usec = (msec % 1000) * 1000) == 0)
+ itval.it_value.tv_usec = 1;
milliwait(&itval);
}



--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email