diff options
author | Luke Bratch <luke@bratch.co.uk> | 2020-01-05 22:25:22 +0000 |
---|---|---|
committer | Luke Bratch <luke@bratch.co.uk> | 2020-01-05 22:25:22 +0000 |
commit | 82ab48d41bfef30ab51b407b48dfcda9ebc5f7e7 (patch) | |
tree | 28a87fe7d5c0af50aaf1abc4717c9e7cb93a24a5 /functions.c | |
parent | d0c2d49cc63cf14a094f3bb168ffdd18e2ea5ff3 (diff) |
Fix some situations where the remote IP of a connecting/disconnecting client is wrong in the debug log and NOTICEs.
Diffstat (limited to 'functions.c')
-rw-r--r-- | functions.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/functions.c b/functions.c index 2b039e0..10e71a1 100644 --- a/functions.c +++ b/functions.c @@ -404,6 +404,7 @@ int arrindex(struct client *clients, int clientfd) { } // Something went wrong, we didn't find it + // TODO - Don't return 0 since 0 is a valid array index, return -1 and have callers check for that. return 0; } |