Skip to content
Commit b4ad86bf authored by David S. Miller's avatar David S. Miller
Browse files

[XFRM] xfrm_user: Better validation of user templates.



Since we never checked the ->family value of templates
before, many applications simply leave it at zero.
Detect this and fix it up to be the pol->family value.

Also, do not clobber xp->family while reading in templates,
that is not necessary.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2b5f6dcc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment