forked from wolfSSL/wolfssl
Don't orphan ticBuff pointer in wolfSSL_DupSessionEx
This commit is contained in:
@@ -21455,8 +21455,8 @@ static int wolfSSL_DupSessionEx(const WOLFSSL_SESSION* input,
|
|||||||
* the static buffer. */
|
* the static buffer. */
|
||||||
if (ticBuff != NULL) {
|
if (ticBuff != NULL) {
|
||||||
if (ticLenAlloc >= input->ticketLen) {
|
if (ticLenAlloc >= input->ticketLen) {
|
||||||
output->ticket = output->staticTicket;
|
output->ticket = ticBuff;
|
||||||
output->ticketLenAlloc = 0;
|
output->ticketLenAlloc = ticLenAlloc;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
WOLFSSL_MSG("ticket dynamic buffer too small but we are "
|
WOLFSSL_MSG("ticket dynamic buffer too small but we are "
|
||||||
|
Reference in New Issue
Block a user