diff --git a/src/core/probe.c b/src/core/probe.c index 37479ce..dcaa6c7 100644 --- a/src/core/probe.c +++ b/src/core/probe.c @@ -76,13 +76,21 @@ static void probe_net_event(struct net_connection* con, int events, void *arg) if (probe->hub->config->tls_enable) { LOG_TRACE("Probed TLS %d.%d connection", (int) probe_recvbuf[1], (int) probe_recvbuf[2]); + if (user_create(probe->hub, probe->connection, &probe->addr)) + { + probe->connection = 0; + } net_con_ssl_handshake(con, NET_CON_SSL_MODE_SERVER); } else { LOG_TRACE("Probed TLS %d.%d connection. TLS disabled in hub.", (int) probe_recvbuf[1], (int) probe_recvbuf[2]); - probe_destroy(probe); } + probe_destroy(probe); + return; + } + else + { return; } #endif diff --git a/src/network/connection.c b/src/network/connection.c index 6228131..76fa078 100644 --- a/src/network/connection.c +++ b/src/network/connection.c @@ -103,7 +103,7 @@ static void net_con_event(int fd, short ev, void *arg) net_con_flag_set(con, NET_PROCESSING_BUSY); - uhub_assert(net_con_flag_get(con, NET_EVENT_SET) != 0); +// uhub_assert(net_con_flag_get(con, NET_EVENT_SET) != 0); net_con_flag_unset(con, NET_EVENT_SET); LOG_MEMORY("EVT: process: CON={ %p, %p, %d, %d}", con, &con->event, con->sd, (int) ev);