Hello, I wrote simple application with dtls and in valgrind output I found memory leak during SSL_connect.
Patch is attached. Regards, Martin Brejcha This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you for understanding.
diff -u -r openssl-1.0.1g.old/crypto/bio/bss_dgram.c openssl-1.0.1g/crypto/bio/bss_dgram.c --- openssl-1.0.1g.old/crypto/bio/bss_dgram.c 2014-04-23 10:59:53.511434923 +0200 +++ openssl-1.0.1g/crypto/bio/bss_dgram.c 2014-04-23 11:04:29.551361074 +0200 @@ -1399,6 +1399,7 @@ 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 */
