]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/sctp/socket.c
inet: stop leaking jiffies on the wire
[mirror_ubuntu-bionic-kernel.git] / net / sctp / socket.c
index 5e770b2f38c8c16e43e2b3c0a19c144a751e61f3..9ea47259405772ef4e933776ffe721bd7904b7eb 100644 (file)
@@ -8288,7 +8288,7 @@ void sctp_copy_sock(struct sock *newsk, struct sock *sk,
        newinet->inet_rcv_saddr = inet->inet_rcv_saddr;
        newinet->inet_dport = htons(asoc->peer.port);
        newinet->pmtudisc = inet->pmtudisc;
-       newinet->inet_id = asoc->next_tsn ^ jiffies;
+       newinet->inet_id = prandom_u32();
 
        newinet->uc_ttl = inet->uc_ttl;
        newinet->mc_loop = 1;