kernel-wfp: Use new UDP ports in update_sa()
This commit is contained in:
@@ -2226,8 +2226,8 @@ METHOD(kernel_ipsec_t, update_sa, status_t,
|
|||||||
{
|
{
|
||||||
/* inbound entry, do update */
|
/* inbound entry, do update */
|
||||||
sa_id = entry->sa_id;
|
sa_id = entry->sa_id;
|
||||||
ports.localUdpEncapPort = entry->local->get_port(entry->local);
|
ports.localUdpEncapPort = data->new_dst->get_port(data->new_dst);
|
||||||
ports.remoteUdpEncapPort = entry->remote->get_port(entry->remote);
|
ports.remoteUdpEncapPort = data->new_src->get_port(data->new_src);
|
||||||
}
|
}
|
||||||
this->mutex->unlock(this->mutex);
|
this->mutex->unlock(this->mutex);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user