Skip to content

Commit

Permalink
fuzz client test code fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sftcd committed Dec 16, 2023
1 parent 9d63e30 commit ff6c6c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fuzz/echclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ int FuzzerTestOneInput(const uint8_t *buf, size_t len)
}
SSL_set_bio(client, in, out);
SSL_set_connect_state(client);
OPENSSL_assert((size_t)BIO_write(in, buf, len / 2) == len);
OPENSSL_assert((size_t)BIO_write(in, buf, len / 2) == (len / 2));
if (SSL_do_handshake(client) == 1) {
/* Keep reading application data until error or EOF. */
uint8_t tmp[1024];
Expand Down

0 comments on commit ff6c6c7

Please sign in to comment.