summaryrefslogtreecommitdiffhomepage
path: root/netio.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2020-11-13 23:18:05 +0800
committerMatt Johnston <matt@ucc.asn.au>2020-11-13 23:18:05 +0800
commit8ec9016585b8bfd026e408567bf246cdad6cee69 (patch)
treeb1b6c9cfc089c6f26a02107b4f61c7aed6e53332 /netio.c
parent15ea6d1106c08deafc1a16788c03155c2efff524 (diff)
Add server postauth fuzzer, wrap connect_remote()
Diffstat (limited to 'netio.c')
-rw-r--r--netio.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/netio.c b/netio.c
index 3988433..eee5119 100644
--- a/netio.c
+++ b/netio.c
@@ -179,6 +179,12 @@ struct dropbear_progress_connection *connect_remote(const char* remotehost, cons
int err;
struct addrinfo hints;
+#if DROPBEAR_FUZZ
+ if (fuzz.fuzzing) {
+ return fuzz_connect_remote(remotehost, remoteport, cb, cb_data, bind_address, bind_port);
+ }
+#endif
+
c = m_malloc(sizeof(*c));
c->remotehost = m_strdup(remotehost);
c->remoteport = m_strdup(remoteport);