Small corrections

This commit is contained in:
Piotr Duszynski 2013-08-01 22:13:56 +02:00
parent 600287f90f
commit 2840d11341

@ -78,7 +78,8 @@ void* process_connection(void *arg)
char* msg;
while(1) {
usleep(100);
for(int i = 0; i < MAX_CLIENT_PER_THREAD; i++)
{
@ -90,7 +91,7 @@ void* process_connection(void *arg)
if(configuration->getConfigValue(OPT_NOT_NMAP_SCANNER))
n = 1; // just reply...
else
n = recv(threads[tid].clients[i], buffer,1, 0);
n = recv(threads[tid].clients[i], buffer,1000, 0);
// deal with different recv buffer size