Skip to content

Commit

Permalink
Update Tls_openssl.c
Browse files Browse the repository at this point in the history
  • Loading branch information
stefankiesz committed Dec 22, 2023
1 parent 4b8137a commit 3a780ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/source/Crypto/Tls_openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,9 @@ STATUS tlsSessionPutApplicationData(PTlsSession pTlsSession, PBYTE pData, UINT32
}

wBioGetMemDataRet = BIO_get_mem_data(SSL_get_wbio(pTlsSession->pSsl), &wBioBuffer);
CHK_ERR(wBioGetMemDataRet >= 0, STATUS_SEND_DATA_FAILED, "BIO_get_mem_data failed");
CHK_ERR(wBioGetMemDataRet != 0, STATUS_SEND_DATA_FAILED, "BIO_get_mem_data failed with: no BIO was connected to the SSL object.");
CHK_ERR(wBioGetMemDataRet > 0, STATUS_SEND_DATA_FAILED, "BIO_get_mem_data failed");

wBioDataLen = (SIZE_T) wBioGetMemDataRet;

if (wBioDataLen > 0) {
Expand Down

0 comments on commit 3a780ac

Please sign in to comment.