strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
debug and logging improvements
[strongswan.git]
/
src
/
charon
/
config
/
policies
/
policy.c
diff --git
a/src/charon/config/policies/policy.c
b/src/charon/config/policies/policy.c
index
22c63c5
..
ac8ae89
100644
(file)
--- a/
src/charon/config/policies/policy.c
+++ b/
src/charon/config/policies/policy.c
@@
-332,6
+332,10
@@
static void add_proposal(private_policy_t *this, proposal_t *proposal)
*/
static u_int32_t get_soft_lifetime(private_policy_t *this)
{
+ if (this->jitter == 0)
+ {
+ return this->soft_lifetime ;
+ }
srandom(time(NULL)+getpid());
return this->soft_lifetime - (random() % this->jitter);
}