diff netio.c @ 1777:97ad26e397a5

Add server postauth fuzzer, wrap connect_remote()
author Matt Johnston <matt@ucc.asn.au>
date Fri, 13 Nov 2020 23:18:05 +0800
parents 58f7ca8ebc82
children a3b39df57c8b
line wrap: on
line diff
--- a/netio.c	Fri Nov 13 23:16:50 2020 +0800
+++ b/netio.c	Fri Nov 13 23:18:05 2020 +0800
@@ -179,6 +179,12 @@
 	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);