summaryrefslogtreecommitdiffhomepage
path: root/netio.c
diff options
context:
space:
mode:
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);