summaryrefslogtreecommitdiff
path: root/net/xfrm/xfrm_state.c
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2018-10-27 09:12:06 +0300
committerSteffen Klassert <steffen.klassert@secunet.com>2018-10-28 13:00:26 +0300
commit533555e5cbb6aa2d77598917871ae5b579fe724b (patch)
tree2abe71f64c428b5bfd3766899f625fdd344beab1 /net/xfrm/xfrm_state.c
parent6788fac82001ed1944b5da976bcec4a7b9accf51 (diff)
downloadlinux-533555e5cbb6aa2d77598917871ae5b579fe724b.tar.xz
xfrm: Fix error return code in xfrm_output_one()
xfrm_output_one() does not return a error code when there is no dst_entry attached to the skb, it is still possible crash with a NULL pointer dereference in xfrm_output_resume(). Fix it by return error code -EHOSTUNREACH. Fixes: 9e1437937807 ("xfrm: Fix NULL pointer dereference when skb_dst_force clears the dst_entry.") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm/xfrm_state.c')
0 files changed, 0 insertions, 0 deletions