提交 00f3a236 编写于 作者: M Martin Brejcha 提交者: Matt Caswell

dgram_sctp_ctrl: authkey memory leak

PR: 3327
上级 308505b8
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册