Skip to content
Commit f1fb521f authored by Thomas Graf's avatar Thomas Graf Committed by David S. Miller
Browse files

ip_tunnel: Add missing validation of encap type to ip_tunnel_encap_setup()



The encap->type comes straight from Netlink. Validate it against
max supported encap types just like ip_encap_hlen() already does.

Fixes: a8c5f9 ("ip_tunnel: Ops registration for secondary encap (fou, gue)")
Signed-off-by: default avatarThomas Graf <tgraf@suug.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bb1553c8
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