Commit 8f49b589 authored by Bert Hubert's avatar Bert Hubert Committed by David S. Miller

[IPSEC]: Fix UDP decap code.

The missing break causes the packet to be tested against
both encapsulation types, one will always fail.
Signed-off-by: default avatarbert hubert <ahu@ds9a.nl>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@redhat.com>
parent 0797db20
......@@ -930,7 +930,7 @@ static int udp_encap_rcv(struct sock * sk, struct sk_buff *skb)
} else
/* Must be an IKE packet.. pass it through */
return 1;
break;
case UDP_ENCAP_ESPINUDP_NON_IKE:
/* Check if this is a keepalive packet. If so, eat it. */
if (len == 1 && udpdata[0] == 0xff) {
......@@ -943,6 +943,7 @@ static int udp_encap_rcv(struct sock * sk, struct sk_buff *skb)
} else
/* Must be an IKE packet.. pass it through */
return 1;
break;
}
/* At this point we are sure that this is an ESPinUDP packet,
......
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