diff options
author | David S. Miller <davem@davemloft.net> | 2019-11-25 14:57:26 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-25 14:57:26 -0800 |
commit | adf6f8cb3f4c2a15d5f35e6cf9ffeb6856d35312 (patch) | |
tree | f1ba8b47d05b9e30cd3ed11cc06fc524e1aba7c9 /net/sctp/sm_statefuns.c | |
parent | c431047c4efe7903fb1c5a23e0f3f8eb1efc89f9 (diff) | |
parent | e58c1912418980f57ba2060017583067f5f71e52 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Merge in networking bug fixes for merge window.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/sm_statefuns.c')
-rw-r--r-- | net/sctp/sm_statefuns.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/sctp/sm_statefuns.c b/net/sctp/sm_statefuns.c index 0c21c52fc408..4ab8208a2dd4 100644 --- a/net/sctp/sm_statefuns.c +++ b/net/sctp/sm_statefuns.c @@ -2160,8 +2160,10 @@ enum sctp_disposition sctp_sf_do_5_2_4_dupcook( /* Update socket peer label if first association. */ if (security_sctp_assoc_request((struct sctp_endpoint *)ep, - chunk->skb)) + chunk->skb)) { + sctp_association_free(new_asoc); return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands); + } /* Set temp so that it won't be added into hashtable */ new_asoc->temp = 1; |