libipsec: Properly handle expiration if no lifetime is set

This commit is contained in:
Tobias Brunner 2013-07-01 13:47:11 +02:00
parent f588349dfe
commit 91c9bf1872
1 changed files with 5 additions and 0 deletions

View File

@ -332,6 +332,11 @@ static void schedule_expiration(private_ipsec_sa_mgr_t *this,
callback_job_t *job;
u_int32_t timeout;
if (!lifetime->time.life)
{ /* no expiration at all */
return;
}
INIT(expired,
.manager = this,
.entry = entry,