diff options
| author | Markus Uhlin <markus@nifty-networks.net> | 2025-11-11 20:40:47 +0100 |
|---|---|---|
| committer | Markus Uhlin <markus@nifty-networks.net> | 2025-11-11 20:40:47 +0100 |
| commit | 1e31450b0d5406dbda4e6d5510f061d5a8aa9734 (patch) | |
| tree | bb4ea65b38536d723a382ffe8ab4a4c632463309 /FICS | |
| parent | 04d8225c79b08c1150e5bb89d825f15608ad150a (diff) | |
ngc2: net_addConnection: compare against non-zero
Diffstat (limited to 'FICS')
| -rw-r--r-- | FICS/network.c | 2 |
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); |
