strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24ab853
)
peer-cfg: Set DPD timeout to at least DPD delay
author
Tobias Brunner
<tobias@strongswan.org>
Mon, 1 Feb 2016 14:29:25 +0000
(15:29 +0100)
committer
Tobias Brunner
<tobias@strongswan.org>
Mon, 1 Feb 2016 14:29:25 +0000
(15:29 +0100)
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.
src/libcharon/config/peer_cfg.c
patch
|
blob
|
history
diff --git
a/src/libcharon/config/peer_cfg.c
b/src/libcharon/config/peer_cfg.c
index
aa2a39c
..
8a8c5b7
100644
(file)
--- a/
src/libcharon/config/peer_cfg.c
+++ b/
src/libcharon/config/peer_cfg.c
@@
-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 = {