dgram_sctp_ctrl: authkey memory leak
PR: 3327
This commit is contained in:
parent
15c1ac03c8
commit
88398e9ba3
@ -1399,6 +1399,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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user