diff --git a/tests/api.c b/tests/api.c index 1d4ca8fe15..d76b23b7ef 100644 --- a/tests/api.c +++ b/tests/api.c @@ -90351,7 +90351,7 @@ static void test_wolfSSL_dtls_plaintext_client(WOLFSSL* ssl) AssertIntEQ(send(fd, (MESSAGE_TYPE_CAST)ch, sizeof(ch), 0), sizeof(ch)); generateDTLSMsg(ch, sizeof(ch), 20, client_hello, 10000); /* Server should ignore this datagram */ - AssertIntEQ(send(fd, ch, sizeof(ch), 0), sizeof(ch)); + AssertIntEQ(send(fd, (MESSAGE_TYPE_CAST)ch, sizeof(ch), 0), sizeof(ch)); AssertIntEQ(wolfSSL_write(ssl, msg, sizeof(msg)), sizeof(msg)); AssertIntGT(wolfSSL_read(ssl, reply, sizeof(reply)),0);