libipsec: Properly handle expiration if no lifetime is set
This commit is contained in:
@@ -332,6 +332,11 @@ static void schedule_expiration(private_ipsec_sa_mgr_t *this,
|
|||||||
callback_job_t *job;
|
callback_job_t *job;
|
||||||
u_int32_t timeout;
|
u_int32_t timeout;
|
||||||
|
|
||||||
|
if (!lifetime->time.life)
|
||||||
|
{ /* no expiration at all */
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
INIT(expired,
|
INIT(expired,
|
||||||
.manager = this,
|
.manager = this,
|
||||||
.entry = entry,
|
.entry = entry,
|
||||||
|
|||||||
Reference in New Issue
Block a user