Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103645
b: refs/heads/master
c: 23b29ed
h: refs/heads/master
i:
  103643: c0e6df5
v: v3
  • Loading branch information
Vlad Yasevich authored and David S. Miller committed Jul 19, 2008
1 parent 037d8b8 commit 278be59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 7dab83de50c7b2b7ceac695a0b56fa6c0f95b0bc
refs/heads/master: 23b29ed80bd7184398317a111dc488605cb66c7f
5 changes: 3 additions & 2 deletions trunk/net/sctp/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -5773,7 +5773,7 @@ int sctp_inet_listen(struct socket *sock, int backlog)
goto out;

/* Allocate HMAC for generating cookie. */
if (sctp_hmac_alg) {
if (!sctp_sk(sk)->hmac && sctp_hmac_alg) {
tfm = crypto_alloc_hash(sctp_hmac_alg, 0, CRYPTO_ALG_ASYNC);
if (IS_ERR(tfm)) {
if (net_ratelimit()) {
Expand Down Expand Up @@ -5801,7 +5801,8 @@ int sctp_inet_listen(struct socket *sock, int backlog)
goto cleanup;

/* Store away the transform reference. */
sctp_sk(sk)->hmac = tfm;
if (!sctp_sk(sk)->hmac)
sctp_sk(sk)->hmac = tfm;
out:
sctp_release_sock(sk);
return err;
Expand Down

0 comments on commit 278be59

Please sign in to comment.