aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--FICS/network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/FICS/network.c b/FICS/network.c
index a530ce3..752efd2 100644
--- a/FICS/network.c
+++ b/FICS/network.c
@@ -622,7 +622,7 @@ ngc2(comstr_t *cs, int timeout)
while ((fd = accept(sockfd, (struct sockaddr *) &cli_addr, &cli_len)) !=
-1) {
- if (net_addConnection(fd, cli_addr.sin_addr.s_addr)) {
+ if (net_addConnection(fd, cli_addr.sin_addr.s_addr) != 0) {
fprintf(stderr, "FICS is full. fd = %d.\n", fd);
psend_raw_file(fd, mess_dir, MESS_FULL);
close(fd);