projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
308505b
)
dgram_sctp_ctrl: authkey memory leak
author
Martin Brejcha
<martin.brejcha@acision.com>
Thu, 1 May 2014 10:07:09 +0000
(12:07 +0200)
committer
Matt Caswell
<matt@openssl.org>
Sun, 11 May 2014 23:20:08 +0000
(
00:20
+0100)
PR: 3327
crypto/bio/bss_dgram.c
patch
|
blob
|
history
diff --git
a/crypto/bio/bss_dgram.c
b/crypto/bio/bss_dgram.c
index ec33423d7fa72d33480cba01d1844e4a7b87001a..3b21bf04c467d208a4768acc2c51b1d59d2d646a 100644
(file)
--- a/
crypto/bio/bss_dgram.c
+++ b/
crypto/bio/bss_dgram.c
@@
-1447,6
+1447,7
@@
static long dgram_sctp_ctrl(BIO *b, int cmd, long num, void *ptr)
memcpy(&authkey->sca_key[0], ptr, 64 * sizeof(uint8_t));
ret = setsockopt(b->num, IPPROTO_SCTP, SCTP_AUTH_KEY, authkey, sockopt_len);
+ OPENSSL_free(authkey);
if (ret < 0) break;
/* Reset active key */