summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/crypto
diff options
context:
space:
mode:
authorlogan <logan@openbsd.org>2014-06-03 06:24:08 +0000
committerlogan <logan@openbsd.org>2014-06-03 06:24:08 +0000
commit24e17d3e1eea72e4d6c218dc4cc4466e524a6ec4 (patch)
tree0f97f70dbb26af2f4694e8216e1a49773bc5d430 /lib/libssl/src/crypto
parentExpand the IP checksum offload subsection to mention the same issue with (diff)
downloadwireguard-openbsd-24e17d3e1eea72e4d6c218dc4cc4466e524a6ec4.tar.xz
wireguard-openbsd-24e17d3e1eea72e4d6c218dc4cc4466e524a6ec4.zip
Fix memory leak.
(From Martin Brejcha) OK from tedu@, miod@ and deraadt@
Diffstat (limited to 'lib/libssl/src/crypto')
-rw-r--r--lib/libssl/src/crypto/bio/bss_dgram.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libssl/src/crypto/bio/bss_dgram.c b/lib/libssl/src/crypto/bio/bss_dgram.c
index 9160fe40186..bfc8e708b0a 100644
--- a/lib/libssl/src/crypto/bio/bss_dgram.c
+++ b/lib/libssl/src/crypto/bio/bss_dgram.c
@@ -1222,6 +1222,7 @@ 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);
+ free(authkey);
if (ret < 0)
break;