From 32a72b1a2069e5715bafe02c9c25353f99efc043 Mon Sep 17 00:00:00 2001 From: Simon Goldschmidt Date: Thu, 30 Jan 2020 20:47:19 +0100 Subject: [PATCH] sntp: ensure sntp_retry_timeout reaches the configured limit See bug #57620 Signed-off-by: Simon Goldschmidt --- src/apps/sntp/sntp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/apps/sntp/sntp.c b/src/apps/sntp/sntp.c index 08b81b77..d4d0fa00 100644 --- a/src/apps/sntp/sntp.c +++ b/src/apps/sntp/sntp.c @@ -388,6 +388,8 @@ sntp_retry(void *arg) if ((new_retry_timeout <= SNTP_RETRY_TIMEOUT_MAX) && (new_retry_timeout > sntp_retry_timeout)) { sntp_retry_timeout = new_retry_timeout; + } else { + sntp_retry_timeout = SNTP_RETRY_TIMEOUT_MAX; } } #endif /* SNTP_RETRY_TIMEOUT_EXP */