12 lines
280 B
Diff
12 lines
280 B
Diff
--- lib/utils.c
|
|
+++ lib/utils.c
|
|
@@ -439,7 +439,7 @@
|
|
len = 4;
|
|
}
|
|
|
|
- hash = addr[len-1] ^ addr[len-2] ^ addr[len-3] ^ addr[len-4];
|
|
+ hash = (addr[len-1] ^ addr[len-2] ^ addr[len-3] ^ addr[len-4]) & 0xff;
|
|
|
|
for (n = nht[hash]; n; n = n->next) {
|
|
if (n->addr.family == af &&
|