diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/database.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database.c b/src/database.c index b3ffb7f..373ce62 100644 --- a/src/database.c +++ b/src/database.c @@ -26,7 +26,7 @@ static size_t db_hash(uint32_t ipv4) return (((ipv4 >> 16) ^ ipv4) * 3137) & HASH_MAX; } -db_entry *database[HASH_MAX]; +db_entry *database[HASH_MAX + 1]; pthread_mutex_t database_mutex = PTHREAD_MUTEX_INITIALIZER; // Returns a pointer to the relevant db_entry (newly created if didn't exist). |