diff --git a/serv_hash.c b/serv_hash.c index f32e4e9..279032e 100644 --- a/serv_hash.c +++ b/serv_hash.c @@ -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) {