aboutsummaryrefslogtreecommitdiff
path: root/tests/fuzz/ssh_client_fuzzer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fuzz/ssh_client_fuzzer.cpp')
-rw-r--r--tests/fuzz/ssh_client_fuzzer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/fuzz/ssh_client_fuzzer.cpp b/tests/fuzz/ssh_client_fuzzer.cpp
index bc4fb259..8480223c 100644
--- a/tests/fuzz/ssh_client_fuzzer.cpp
+++ b/tests/fuzz/ssh_client_fuzzer.cpp
@@ -32,6 +32,7 @@ static int auth_callback(const char *prompt,
{
(void)prompt; /* unused */
(void)echo; /* unused */
+ (void)verify; /* unused */
(void)userdata; /* unused */
snprintf(buf, len, "secret");
@@ -86,7 +87,6 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{
ssh_session session = NULL;
ssh_channel channel = NULL;
- char *banner = NULL;
const char *env = NULL;
int socket_fds[2] = {-1, -1};
ssize_t nwritten;
@@ -98,7 +98,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
assert(rc == 0);
nwritten = send(socket_fds[1], data, size, 0);
- assert(nwritten == size);
+ assert((size_t)nwritten == size);
rc = shutdown(socket_fds[1], SHUT_WR);
assert(rc == 0);