kernel-wfp: Use new UDP ports in update_sa()

This commit is contained in:
Tobias Brunner
2022-04-14 18:42:01 +02:00
parent 9619b1e757
commit 1f060357f4
@@ -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);