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:
Tobias Brunner
2016-02-01 15:29:25 +01:00
parent 24ab8530e5
commit b4ae9e81f5
+4
View File
@@ -666,6 +666,10 @@ peer_cfg_t *peer_cfg_create(char *name,
{
jitter_time = reauth_time;
}
if (dpd && dpd_timeout && dpd > dpd_timeout)
{
dpd_timeout = dpd;
}
INIT(this,
.public = {