net: sctp: inherit auth_capable on INIT collisions
[firefly-linux-kernel-4.4.55.git] / net / ipv4 / inet_hashtables.c
index 6af375afeeef1e9706667720fda31c3e57a15d65..c95848d00039ec74a3d70576c885394694fcf31e 100644 (file)
@@ -287,7 +287,7 @@ begintw:
                        if (unlikely(!INET_TW_MATCH(sk, net, acookie,
                                                    saddr, daddr, ports,
                                                    dif))) {
-                               sock_put(sk);
+                               inet_twsk_put(inet_twsk(sk));
                                goto begintw;
                        }
                        goto out;