diff options
Diffstat (limited to 'net/ipv4/ip_output.c')
-rw-r--r-- | net/ipv4/ip_output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c index bd5c4b388129..00d4d0086630 100644 --- a/net/ipv4/ip_output.c +++ b/net/ipv4/ip_output.c @@ -877,8 +877,8 @@ int ip_append_data(struct sock *sk, inet->cork.length += length; if (((length > mtu) || (skb && skb_has_frags(skb))) && (sk->sk_protocol == IPPROTO_UDP) && - (rt->u.dst.dev->features & NETIF_F_UFO)) { - (rt->u.dst.dev->features & NETIF_F_UFO) && !rt->u.dst.header_len) { + (rt->u.dst.dev->features & NETIF_F_UFO) && !rt->u.dst.header_len && + (sk->sk_type == SOCK_DGRAM)) { err = ip_ufo_append_data(sk, getfrag, from, length, hh_len, fragheaderlen, transhdrlen, mtu, flags); |