diff options
-rw-r--r-- | net/sctp/endpointola.c | 2 | ||||
-rw-r--r-- | net/sctp/input.c | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/net/sctp/endpointola.c b/net/sctp/endpointola.c index 52838eaa1582..2522a6175291 100644 --- a/net/sctp/endpointola.c +++ b/net/sctp/endpointola.c | |||
@@ -333,7 +333,7 @@ struct sctp_association *sctp_endpoint_lookup_assoc( | |||
333 | if (!ep->base.bind_addr.port) | 333 | if (!ep->base.bind_addr.port) |
334 | goto out; | 334 | goto out; |
335 | t = sctp_epaddr_lookup_transport(ep, paddr); | 335 | t = sctp_epaddr_lookup_transport(ep, paddr); |
336 | if (!t || t->asoc->temp) | 336 | if (!t) |
337 | goto out; | 337 | goto out; |
338 | 338 | ||
339 | *transport = t; | 339 | *transport = t; |
diff --git a/net/sctp/input.c b/net/sctp/input.c index b9a536b52da2..bf61dfb8e09e 100644 --- a/net/sctp/input.c +++ b/net/sctp/input.c | |||
@@ -874,6 +874,9 @@ void sctp_hash_transport(struct sctp_transport *t) | |||
874 | { | 874 | { |
875 | struct sctp_hash_cmp_arg arg; | 875 | struct sctp_hash_cmp_arg arg; |
876 | 876 | ||
877 | if (t->asoc->temp) | ||
878 | return; | ||
879 | |||
877 | arg.ep = t->asoc->ep; | 880 | arg.ep = t->asoc->ep; |
878 | arg.paddr = &t->ipaddr; | 881 | arg.paddr = &t->ipaddr; |
879 | arg.net = sock_net(t->asoc->base.sk); | 882 | arg.net = sock_net(t->asoc->base.sk); |
@@ -886,6 +889,9 @@ reinsert: | |||
886 | 889 | ||
887 | void sctp_unhash_transport(struct sctp_transport *t) | 890 | void sctp_unhash_transport(struct sctp_transport *t) |
888 | { | 891 | { |
892 | if (t->asoc->temp) | ||
893 | return; | ||
894 | |||
889 | rhashtable_remove_fast(&sctp_transport_hashtable, &t->node, | 895 | rhashtable_remove_fast(&sctp_transport_hashtable, &t->node, |
890 | sctp_hash_params); | 896 | sctp_hash_params); |
891 | } | 897 | } |
@@ -931,7 +937,7 @@ static struct sctp_association *__sctp_lookup_association( | |||
931 | struct sctp_transport *t; | 937 | struct sctp_transport *t; |
932 | 938 | ||
933 | t = sctp_addrs_lookup_transport(net, local, peer); | 939 | t = sctp_addrs_lookup_transport(net, local, peer); |
934 | if (!t || t->dead || t->asoc->temp) | 940 | if (!t || t->dead) |
935 | return NULL; | 941 | return NULL; |
936 | 942 | ||
937 | sctp_association_hold(t->asoc); | 943 | sctp_association_hold(t->asoc); |