]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
xfrm Fix potential error pointer dereference in xfrm_bundle_create.
authorSteffen Klassert <steffen.klassert@secunet.com>
Thu, 31 May 2018 07:45:18 +0000 (09:45 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Thu, 31 May 2018 07:53:04 +0000 (09:53 +0200)
commit38369f54d97dd7dc50c73a2797bfeb53c2e87d2d
tree10f9850a7f5f795165a4fd7d833261c0d8f8f7e3
parentd9f92772e8ec388d070752ee8f187ef8fa18621f
xfrm Fix potential error pointer dereference in xfrm_bundle_create.

We may derference an invalid pointer in the error path of
xfrm_bundle_create(). Fix this by returning this error
pointer directly instead of assigning it to xdst0.

Fixes: 45b018beddb6 ("ipsec: Create and use new helpers for dst child access.")
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_policy.c