Commit a907233d authored by James Morris's avatar James Morris

[IPSEC]: allow only tunnel mode in xfrm4_tunnels.

parent d25c7f63
...@@ -174,6 +174,8 @@ static void ipip_err(struct sk_buff *skb, u32 info) ...@@ -174,6 +174,8 @@ static void ipip_err(struct sk_buff *skb, u32 info)
static int ipip_init_state(struct xfrm_state *x, void *args) static int ipip_init_state(struct xfrm_state *x, void *args)
{ {
if (!x->props.mode)
return -EINVAL;
x->props.header_len = sizeof(struct iphdr); x->props.header_len = sizeof(struct iphdr);
return 0; return 0;
......
Markdown is supported
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