Commit 3f2d5210 authored by pdw's avatar pdw

Fix for problem found by Ken McLeod <>

hash function return value not constrained.
parent 98ffcb52
......@@ -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
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment