peer-cfg: Set DPD timeout to at least DPD delay
If DPD timeout is set but to a value smaller than the DPD delay the code in task_manager_v1.c:queue_liveliness_check will run into an integer underrun.
This commit is contained in:
@@ -666,6 +666,10 @@ peer_cfg_t *peer_cfg_create(char *name,
|
|||||||
{
|
{
|
||||||
jitter_time = reauth_time;
|
jitter_time = reauth_time;
|
||||||
}
|
}
|
||||||
|
if (dpd && dpd_timeout && dpd > dpd_timeout)
|
||||||
|
{
|
||||||
|
dpd_timeout = dpd;
|
||||||
|
}
|
||||||
|
|
||||||
INIT(this,
|
INIT(this,
|
||||||
.public = {
|
.public = {
|
||||||
|
|||||||
Reference in New Issue
Block a user