diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c index df7f20da422d95e950fc79262440b5c59034c2dd..11c2f68254f0a8a04602222216a03578c0327d20 100644 --- a/net/ipv4/ip_output.c +++ b/net/ipv4/ip_output.c @@ -353,7 +353,8 @@ int ip_queue_xmit(struct sk_buff *skb, int ipfragok) ip_options_build(skb, opt, inet->daddr, rt, 0); } - ip_select_ident_more(iph, &rt->u.dst, sk, skb_shinfo(skb)->tso_segs); + ip_select_ident_more(iph, &rt->u.dst, sk, + (skb_shinfo(skb)->tso_segs ?: 1) - 1); /* Add an IP checksum. */ ip_send_check(iph);