Fixed possible bug.

This commit is contained in:
irungentoo 2015-04-22 09:32:36 -04:00
parent 50b81dc669
commit 390f94bfd5
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -1565,6 +1565,7 @@ int accept_crypto_connection(Net_Crypto *c, New_Connection *n_c)
pthread_mutex_lock(&c->tcp_mutex); pthread_mutex_lock(&c->tcp_mutex);
kill_tcp_connection_to(c->tcp_c, conn->connection_number_tcp); kill_tcp_connection_to(c->tcp_c, conn->connection_number_tcp);
pthread_mutex_unlock(&c->tcp_mutex); pthread_mutex_unlock(&c->tcp_mutex);
conn->status = CRYPTO_CONN_NO_CONNECTION;
return -1; return -1;
} }