HomeFreeBSD

Use correct pointer in key_updateaddresses() when updating NAT-T config.

Description

Use correct pointer in key_updateaddresses() when updating NAT-T config.

key_updateaddresses() is used to update SA addresses and NAT-T
configuration in SADB_UPDATE message. This is done using cloning SA
content from old SA into new one. But addresses and NAT-T configuration
are taking from SADB_UPDATE message. Use newsa pointer to set NAT-T
properties into cloned SA.

PR: 223382
MFC after: 1 week

Details

Provenance
aeAuthored on
Parents
rS325354: crypto(9) is called from ipsec in CRYPTO_F_CBIFSYNC mode. This is working
Branches
Unknown
Tags
Unknown