libipsec: Properly handle expiration if no lifetime is set

This commit is contained in:
Tobias Brunner
2013-07-01 13:48:02 +02:00
parent f588349dfe
commit 91c9bf1872
+5
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,