forked from wolfSSL/wolfssl
fix DTLS test case for when able to read peers close notify alert
This commit is contained in:
@ -57831,8 +57831,11 @@ static int test_wolfSSL_dtls_fragments(void)
|
|||||||
AssertFalse(func_cb_server.return_code);
|
AssertFalse(func_cb_server.return_code);
|
||||||
|
|
||||||
/* The socket should be closed by the server resulting in a
|
/* The socket should be closed by the server resulting in a
|
||||||
* socket error */
|
* socket error or reading a close notify alert */
|
||||||
AssertIntEQ(func_cb_client.last_err, SOCKET_ERROR_E);
|
if (func_cb_client.last_err != SOCKET_ERROR_E &&
|
||||||
|
func_cb_client.last_err != WOLFSSL_ERROR_ZERO_RETURN) {
|
||||||
|
AssertIntEQ(func_cb_client.last_err, SOCKET_ERROR_E);
|
||||||
|
}
|
||||||
/* Check the server returned an error indicating the msg buffer
|
/* Check the server returned an error indicating the msg buffer
|
||||||
* was full */
|
* was full */
|
||||||
AssertIntEQ(func_cb_server.last_err, DTLS_TOO_MANY_FRAGMENTS_E);
|
AssertIntEQ(func_cb_server.last_err, DTLS_TOO_MANY_FRAGMENTS_E);
|
||||||
|
Reference in New Issue
Block a user