From 82ab48d41bfef30ab51b407b48dfcda9ebc5f7e7 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Sun, 5 Jan 2020 22:25:22 +0000 Subject: Fix some situations where the remote IP of a connecting/disconnecting client is wrong in the debug log and NOTICEs. --- functions.c | 1 + 1 file changed, 1 insertion(+) (limited to 'functions.c') 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; } -- cgit v1.2.3