From 87d44bbfcdc26ad508b07579ff4d0e21416c3d9e 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 1ff55eee..23731e51 100644 --- a/src/apps/sntp/sntp.c +++ b/src/apps/sntp/sntp.c @@ -383,6 +383,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 */