Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xfrm: Fix error reporting in xfrm_state_construct.
When memory allocation for XFRMA_ENCAP or XFRMA_COADDR fails, the error will not be reported because the -ENOMEM assignment to the err variable is overwritten before. Fix this by moving these two in front of the function so that memory allocation failures will be reported. Reported-by: Tobias Brunner <[email protected]> Signed-off-by: Steffen Klassert <[email protected]>
- Loading branch information