Skip to content

Commit

Permalink
fix leak in early data
Browse files Browse the repository at this point in the history
  • Loading branch information
duke8253 committed Jun 26, 2020
1 parent 3d14b21 commit 15fc9c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions iocore/net/SSLUtils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1840,6 +1840,7 @@ SSLAccept(SSL *ssl)

if (ret == SSL_READ_EARLY_DATA_ERROR) {
Debug("ssl_early_data", "SSL_READ_EARLY_DATA_ERROR");
block->free();
break;
} else {
if (nread > 0) {
Expand All @@ -1851,6 +1852,8 @@ SSLAccept(SSL *ssl)
std::string early_data_str(reinterpret_cast<char *>(block->buf()), nread);
Debug("ssl_early_data_show_received", "Early data buffer: \n%s", early_data_str.c_str());
}
} else {
block->free();
}

if (ret == SSL_READ_EARLY_DATA_FINISH) {
Expand Down

0 comments on commit 15fc9c6

Please sign in to comment.