summaryrefslogtreecommitdiff
path: root/net/ipv6
diff options
context:
space:
mode:
authorSteffen Klassert <steffen.klassert@secunet.com>2021-06-07 15:21:49 +0200
committerSteffen Klassert <steffen.klassert@secunet.com>2021-06-14 11:58:43 +0200
commit6fd06963fa74197103cdbb4b494763127b3f2f34 (patch)
tree1585d150c7ac714ff5c46a430f7294a07c56ab83 /net/ipv6
parenteebd49a4ffb420a991c606e54aa3c9f02857a334 (diff)
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 <tobias@strongswan.org> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/ipv6')
0 files changed, 0 insertions, 0 deletions