diff options
author | Philip Hazel <ph10@hermes.cam.ac.uk> | 2006-02-22 15:08:20 +0000 |
---|---|---|
committer | Philip Hazel <ph10@hermes.cam.ac.uk> | 2006-02-22 15:08:20 +0000 |
commit | 944a9c55d5b7d3d50ea8b8fabfb7a7be5ca8693f (patch) | |
tree | 8b8c4ed000a02c8550729a3bd3b881b95ae1945b /src | |
parent | 2632889eca3018763375f85b31212712044c395f (diff) |
Limit retry_interval_max to 24h to avoid overflow problems.
Diffstat (limited to 'src')
-rw-r--r-- | src/src/readconf.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/src/readconf.c b/src/src/readconf.c index 37df2464e..59e75d0a4 100644 --- a/src/src/readconf.c +++ b/src/src/readconf.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/readconf.c,v 1.20 2006/02/16 14:54:15 ph10 Exp $ */ +/* $Cambridge: exim/src/src/readconf.c,v 1.21 2006/02/22 15:08:20 ph10 Exp $ */ /************************************************* * Exim - an Internet mail transport agent * @@ -2819,6 +2819,10 @@ wanted. */ if (timezone_string != NULL && *timezone_string == 0) timezone_string = NULL; +/* The max retry interval must not be greater than 24 hours. */ + +if (retry_interval_max > 24*60*60) retry_interval_max = 24*60*60; + /* remote_max_parallel must be > 0 */ if (remote_max_parallel <= 0) remote_max_parallel = 1; |