comparison 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
comparison
equal deleted inserted replaced
1776:290caf301a4f 1777:97ad26e397a5
177 { 177 {
178 struct dropbear_progress_connection *c = NULL; 178 struct dropbear_progress_connection *c = NULL;
179 int err; 179 int err;
180 struct addrinfo hints; 180 struct addrinfo hints;
181 181
182 #if DROPBEAR_FUZZ
183 if (fuzz.fuzzing) {
184 return fuzz_connect_remote(remotehost, remoteport, cb, cb_data, bind_address, bind_port);
185 }
186 #endif
187
182 c = m_malloc(sizeof(*c)); 188 c = m_malloc(sizeof(*c));
183 c->remotehost = m_strdup(remotehost); 189 c->remotehost = m_strdup(remotehost);
184 c->remoteport = m_strdup(remoteport); 190 c->remoteport = m_strdup(remoteport);
185 c->sock = -1; 191 c->sock = -1;
186 c->cb = cb; 192 c->cb = cb;