mirror of
https://github.com/drk1wi/portspoof.git
synced 2024-06-16 11:58:57 +00:00
Update connection.cpp
This commit is contained in:
parent
af6cd4d79e
commit
798e7e10c7
@ -157,7 +157,6 @@ void* process_connection(void *arg)
|
|||||||
} else
|
} else
|
||||||
original_port = ntohs(peer_sockaddr.sin_port);
|
original_port = ntohs(peer_sockaddr.sin_port);
|
||||||
|
|
||||||
get_ipstr(threads[tid].clients[i], threads[tid].client_src_ip[i], ipstr);
|
|
||||||
|
|
||||||
close_socket:
|
close_socket:
|
||||||
if (configuration->getConfigValue(OPT_DEBUG))
|
if (configuration->getConfigValue(OPT_DEBUG))
|
||||||
@ -165,8 +164,6 @@ void* process_connection(void *arg)
|
|||||||
|
|
||||||
close(threads[tid].clients[i]);
|
close(threads[tid].clients[i]);
|
||||||
|
|
||||||
fingerp.addTimedOutConnection(threads[tid].client_src_ip[i], original_port);
|
|
||||||
|
|
||||||
pthread_mutex_lock(&new_connection_mutex);
|
pthread_mutex_lock(&new_connection_mutex);
|
||||||
threads[tid].clients[i] = 0;
|
threads[tid].clients[i] = 0;
|
||||||
threads[tid].client_count--;
|
threads[tid].client_count--;
|
||||||
|
Loading…
Reference in New Issue
Block a user