forked from wolfSSL/wolfssl
Added warning message if user IO read callback returns negative that is not supported.
This commit is contained in:
@ -6871,7 +6871,7 @@ static int wolfSSLReceive(WOLFSSL* ssl, byte* buf, word32 sz)
|
||||
|
||||
retry:
|
||||
recvd = ssl->CBIORecv(ssl, (char *)buf, (int)sz, ssl->IOCB_ReadCtx);
|
||||
if (recvd < 0)
|
||||
if (recvd < 0) {
|
||||
switch (recvd) {
|
||||
case WOLFSSL_CBIO_ERR_GENERAL: /* general/unknown error */
|
||||
return -1;
|
||||
@ -6926,8 +6926,10 @@ retry:
|
||||
return -1;
|
||||
|
||||
default:
|
||||
WOLFSSL_MSG("Unexpected recv return code");
|
||||
return recvd;
|
||||
}
|
||||
}
|
||||
|
||||
return recvd;
|
||||
}
|
||||
|
Reference in New Issue
Block a user