From 944a9c55d5b7d3d50ea8b8fabfb7a7be5ca8693f Mon Sep 17 00:00:00 2001 From: Philip Hazel Date: Wed, 22 Feb 2006 15:08:20 +0000 Subject: Limit retry_interval_max to 24h to avoid overflow problems. --- src/src/readconf.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3