Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ipsec: Fix inverted arguments in ipSecReplaceStateIn
ipSecReplaceStateIn was called with the local IP first and the remote IP second but its prototype indicates that the first argument is the remoteIP and the second is the localIP (inverted). This all worked fine because the function would then set the XFRM IN state source to the `localIP` (actually the remote IP). That doesn't make any sense given that the XFRM IN state is for decryption so the source of the packet is the remote IP. This commit fixes it such that the state source is set to the `remoteIP` variable as one would expect. This commit doesn't have any functional changes. Signed-off-by: Paul Chaignon <[email protected]>
- Loading branch information