Commit 3f2d5210 by pdw

Fix for problem found by Ken McLeod <thecloud@apple.com>

hash function return value not constrained.
1 parent 98ffcb52
Showing with 1 additions and 1 deletions
......@@ -19,7 +19,7 @@ int serv_hash_compare(void* a, void* b) {
int serv_hash_hash(void* key) {
ip_service* serv = (ip_service*)key;
return serv->protocol;
return serv->protocol % hash_table_size;
}
void* serv_hash_copy_key(void* orig) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!