Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 59044
b: refs/heads/master
c: 3be550f
h: refs/heads/master
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Jul 11, 2007
1 parent cc82854 commit 1281e9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dffe4f048b420f1af0b10a6090add0c5ea69e585
refs/heads/master: 3be550f34b03e5eb762f74d447ebbeba97efbd6d
9 changes: 2 additions & 7 deletions trunk/net/ipv4/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -951,14 +951,10 @@ int udp_queue_rcv_skb(struct sock * sk, struct sk_buff *skb)
* >0 if skb should be passed on to UDP.
* <0 if skb should be resubmitted as proto -N
*/
unsigned int len;

/* if we're overly short, let UDP handle it */
len = skb->len - sizeof(struct udphdr);
if (len <= 0)
goto udp;

if (up->encap_rcv != NULL) {
if (skb->len > sizeof(struct udphdr) &&
up->encap_rcv != NULL) {
int ret;

ret = (*up->encap_rcv)(sk, skb);
Expand All @@ -971,7 +967,6 @@ int udp_queue_rcv_skb(struct sock * sk, struct sk_buff *skb)
/* FALLTHROUGH -- it's a UDP Packet */
}

udp:
/*
* UDP-Lite specific tests, ignored on UDP sockets
*/
Expand Down

0 comments on commit 1281e9b

Please sign in to comment.