Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 352381
b: refs/heads/master
c: 03536e2
h: refs/heads/master
i:
  352379: 103fb28
v: v3
  • Loading branch information
Daniel Borkmann authored and David S. Miller committed Feb 8, 2013
1 parent 1cbf2e4 commit edd71f7
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 3807ff5899f892abb4f06747c245fd648a2acdc5
refs/heads/master: 03536e23acd3706c0ec93d01dc8bef44dab1a860
8 changes: 3 additions & 5 deletions trunk/net/sctp/auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,10 @@ static struct sctp_auth_bytes *sctp_auth_make_key_vector(

len = random_len + hmacs_len + chunks_len;

new = kmalloc(sizeof(struct sctp_auth_bytes) + len, gfp);
new = sctp_auth_create_key(len, gfp);
if (!new)
return NULL;

new->len = len;

memcpy(new->data, random, random_len);
offset += random_len;

Expand Down Expand Up @@ -353,8 +351,8 @@ static struct sctp_auth_bytes *sctp_auth_asoc_create_secret(
secret = sctp_auth_asoc_set_secret(ep_key, first_vector, last_vector,
gfp);
out:
kfree(local_key_vector);
kfree(peer_key_vector);
sctp_auth_key_put(local_key_vector);
sctp_auth_key_put(peer_key_vector);

return secret;
}
Expand Down

0 comments on commit edd71f7

Please sign in to comment.