From: Martin Brejcha Date: Thu, 1 May 2014 10:07:09 +0000 (+0200) Subject: dgram_sctp_ctrl: authkey memory leak X-Git-Tag: OpenSSL_1_0_2-beta2~219 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c622649513fdf08a8dda2f0fc0dd4be9b5438c02;p=oweals%2Fopenssl.git dgram_sctp_ctrl: authkey memory leak PR: 3327 --- diff --git a/crypto/bio/bss_dgram.c b/crypto/bio/bss_dgram.c index ec33423d7f..3b21bf04c4 100644 --- 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 */