Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 32781
b: refs/heads/master
c: cfdeef3
h: refs/heads/master
i:
  32779: b65f878
v: v3
  • Loading branch information
Vlad Yasevich authored and David S. Miller committed Jul 21, 2006
1 parent ee30c90 commit 5630c0b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 37fa6878bcd54c25fbe6ebb3da5cf0d3a4bc7a65
refs/heads/master: cfdeef3282705a4b872d3559c4e7d2561251363c
11 changes: 6 additions & 5 deletions trunk/net/sctp/endpointola.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@ void sctp_endpoint_add_asoc(struct sctp_endpoint *ep,
void sctp_endpoint_free(struct sctp_endpoint *ep)
{
ep->base.dead = 1;

ep->base.sk->sk_state = SCTP_SS_CLOSED;

/* Unlink this endpoint, so we can't find it again! */
sctp_unhash_endpoint(ep);

sctp_endpoint_put(ep);
}

Expand All @@ -166,11 +172,6 @@ static void sctp_endpoint_destroy(struct sctp_endpoint *ep)
{
SCTP_ASSERT(ep->base.dead, "Endpoint is not dead", return);

ep->base.sk->sk_state = SCTP_SS_CLOSED;

/* Unlink this endpoint, so we can't find it again! */
sctp_unhash_endpoint(ep);

/* Free up the HMAC transform. */
sctp_crypto_free_tfm(sctp_sk(ep->base.sk)->hmac);

Expand Down

0 comments on commit 5630c0b

Please sign in to comment.