diff options
author | Test_User <hax@andrewyu.org> | 2024-05-26 16:47:45 -0400 |
---|---|---|
committer | Test_User <hax@andrewyu.org> | 2024-05-26 16:47:56 -0400 |
commit | 462f11de02e2cde6c4c196acf9c3dfa8c6d75f3d (patch) | |
tree | 86c8101e137700493f24ab12d152e2635fee4293 /client_network.c | |
parent | 5e819c46cdf88ec09125cb593757d1203245a8b7 (diff) | |
download | c_coupserv-462f11de02e2cde6c4c196acf9c3dfa8c6d75f3d.tar.gz c_coupserv-462f11de02e2cde6c4c196acf9c3dfa8c6d75f3d.zip |
Writing on stale fds is a bad idea
Diffstat (limited to 'client_network.c')
-rw-r--r-- | client_network.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client_network.c b/client_network.c index 93ad1d9..1a7d60c 100644 --- a/client_network.c +++ b/client_network.c @@ -569,7 +569,7 @@ int initclientnetwork(void) { #if LOGALL ssize_t SENDCLIENT(struct string msg) { - if (msg.len == 0) + if (msg.len == 0 || client_fd == -1) return 0; static char printprefix = 1; |