mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-19 05:10:40 +00:00
sntp: ensure sntp_retry_timeout reaches the configured limit
See bug #57620 Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
parent
07d3b3330d
commit
87d44bbfcd
@ -383,6 +383,8 @@ sntp_retry(void *arg)
|
|||||||
if ((new_retry_timeout <= SNTP_RETRY_TIMEOUT_MAX) &&
|
if ((new_retry_timeout <= SNTP_RETRY_TIMEOUT_MAX) &&
|
||||||
(new_retry_timeout > sntp_retry_timeout)) {
|
(new_retry_timeout > sntp_retry_timeout)) {
|
||||||
sntp_retry_timeout = new_retry_timeout;
|
sntp_retry_timeout = new_retry_timeout;
|
||||||
|
} else {
|
||||||
|
sntp_retry_timeout = SNTP_RETRY_TIMEOUT_MAX;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* SNTP_RETRY_TIMEOUT_EXP */
|
#endif /* SNTP_RETRY_TIMEOUT_EXP */
|
||||||
|
Loading…
Reference in New Issue
Block a user