diff options
-rw-r--r-- | net/dccp/proto.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/dccp/proto.c b/net/dccp/proto.c index 671cd1413d59..85ec1cb7fd41 100644 --- a/net/dccp/proto.c +++ b/net/dccp/proto.c | |||
@@ -835,6 +835,8 @@ verify_sock_status: | |||
835 | len = -EFAULT; | 835 | len = -EFAULT; |
836 | break; | 836 | break; |
837 | } | 837 | } |
838 | if (flags & MSG_TRUNC) | ||
839 | len = skb->len; | ||
838 | found_fin_ok: | 840 | found_fin_ok: |
839 | if (!(flags & MSG_PEEK)) | 841 | if (!(flags & MSG_PEEK)) |
840 | sk_eat_skb(sk, skb, 0); | 842 | sk_eat_skb(sk, skb, 0); |