diff options
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/fou.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv4/fou.c b/net/ipv4/fou.c index efa70ad44906..32e78924e246 100644 --- a/net/ipv4/fou.c +++ b/net/ipv4/fou.c | |||
@@ -87,6 +87,9 @@ static int gue_udp_recv(struct sock *sk, struct sk_buff *skb) | |||
87 | if (!pskb_may_pull(skb, len)) | 87 | if (!pskb_may_pull(skb, len)) |
88 | goto drop; | 88 | goto drop; |
89 | 89 | ||
90 | uh = udp_hdr(skb); | ||
91 | guehdr = (struct guehdr *)&uh[1]; | ||
92 | |||
90 | if (guehdr->version != 0) | 93 | if (guehdr->version != 0) |
91 | goto drop; | 94 | goto drop; |
92 | 95 | ||