fix bug with non-blocking DTLS where the stored peer messages were deleted after a timeout

This commit is contained in:
John Safranek
2016-04-28 10:28:57 -07:00
parent 0511c8cac8
commit e0c7739fd6

View File

@@ -6163,8 +6163,6 @@ int wolfSSL_dtls_got_timeout(WOLFSSL* ssl)
{
int result = SSL_SUCCESS;
DtlsMsgListDelete(ssl->dtls_msg_list, ssl->heap);
ssl->dtls_msg_list = NULL;
if (DtlsPoolTimeout(ssl) < 0 || DtlsPoolSend(ssl) < 0) {
result = SSL_FATAL_ERROR;
}