Commit 04d00696 authored by Dan Carpenter's avatar Dan Carpenter Committed by Willy Tarreau
Browse files

xfrm: Oops on error in pfkey_msg2xfrm_state()



commit 1e3d0c2c upstream.

There are some missing error codes here so we accidentally return NULL
instead of an error pointer.  It results in a NULL pointer dereference.

Fixes: df71837d ("[LSM-IPSec]: Security association restriction.")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: default avatarWilly Tarreau <w@1wt.eu>
parent f478b426
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment