diff options
author | Loganaden Velvindron <logan@cvs.openbsd.org> | 2014-06-03 06:24:09 +0000 |
---|---|---|
committer | Loganaden Velvindron <logan@cvs.openbsd.org> | 2014-06-03 06:24:09 +0000 |
commit | 87d1db1a9e9211db765776a4cc58461f701a42a6 (patch) | |
tree | eb38420ef09b85097b8af282aa3b197e8e3dd423 /lib/libcrypto/bio | |
parent | c7844c2ecea16af3da0e5410b272372064282129 (diff) |
Fix memory leak.
(From Martin Brejcha)
OK from tedu@, miod@ and deraadt@
Diffstat (limited to 'lib/libcrypto/bio')
-rw-r--r-- | lib/libcrypto/bio/bss_dgram.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libcrypto/bio/bss_dgram.c b/lib/libcrypto/bio/bss_dgram.c index 9160fe40186..bfc8e708b0a 100644 --- a/lib/libcrypto/bio/bss_dgram.c +++ b/lib/libcrypto/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; |