kernel-interface: Raise expires with a proto/SPI/dst tuple instead of reqid
This commit is contained in:
@@ -2032,9 +2032,8 @@ static void expire_data_destroy(expire_data_t *data)
|
||||
static job_requeue_t expire_job(expire_data_t *data)
|
||||
{
|
||||
private_kernel_wfp_ipsec_t *this = data->this;
|
||||
u_int32_t reqid = 0;
|
||||
u_int8_t protocol;
|
||||
entry_t *entry;
|
||||
entry_t *entry = NULL;
|
||||
sa_entry_t key = {
|
||||
.spi = data->spi,
|
||||
.dst = data->dst,
|
||||
@@ -2048,7 +2047,6 @@ static job_requeue_t expire_job(expire_data_t *data)
|
||||
if (entry)
|
||||
{
|
||||
protocol = entry->isa.protocol;
|
||||
reqid = entry->reqid;
|
||||
if (entry->osa.dst)
|
||||
{
|
||||
key.dst = entry->osa.dst;
|
||||
@@ -2065,15 +2063,14 @@ static job_requeue_t expire_job(expire_data_t *data)
|
||||
if (entry)
|
||||
{
|
||||
protocol = entry->isa.protocol;
|
||||
reqid = entry->reqid;
|
||||
}
|
||||
this->mutex->unlock(this->mutex);
|
||||
}
|
||||
|
||||
if (reqid)
|
||||
if (entry)
|
||||
{
|
||||
hydra->kernel_interface->expire(hydra->kernel_interface,
|
||||
reqid, protocol, data->spi, data->hard);
|
||||
hydra->kernel_interface->expire(hydra->kernel_interface, protocol,
|
||||
data->spi, data->dst, data->hard);
|
||||
}
|
||||
|
||||
return JOB_REQUEUE_NONE;
|
||||
|
||||
Reference in New Issue
Block a user