mirror of
https://github.com/skeeto/endlessh.git
synced 2025-08-18 17:28:10 +02:00
@@ -790,11 +790,12 @@ main(int argc, char **argv)
|
|||||||
if (!client) {
|
if (!client) {
|
||||||
fprintf(stderr, "endlessh: warning: out of memory\n");
|
fprintf(stderr, "endlessh: warning: out of memory\n");
|
||||||
close(fd);
|
close(fd);
|
||||||
|
} else {
|
||||||
|
fifo_append(fifo, client);
|
||||||
|
logmsg(LOG_INFO, "ACCEPT host=%s port=%d fd=%d n=%d/%d",
|
||||||
|
client->ipaddr, client->port, client->fd,
|
||||||
|
fifo->length, config.max_clients);
|
||||||
}
|
}
|
||||||
fifo_append(fifo, client);
|
|
||||||
logmsg(LOG_INFO, "ACCEPT host=%s port=%d fd=%d n=%d/%d",
|
|
||||||
client->ipaddr, client->port, client->fd,
|
|
||||||
fifo->length, config.max_clients);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user