Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP3:GA
ganglia
ganglia-0023-Fix-hash-collisions.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ganglia-0023-Fix-hash-collisions.patch of Package ganglia
From: Junichi TANAKA <junsan45@gmail.com> Date: Wed, 31 Jan 2018 23:08:22 +0900 Git-commit: 48dbbd380cfcb4c61a3910ae16ad56ad97d4cf0b References: bsc#1087487 Subject: [PATCH] Fix hash collisions Acked-by: John Jolly <jjolly@suse.de> --- lib/hash.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/hash.c b/lib/hash.c index a1d41e76..de922533 100644 --- a/lib/hash.c +++ b/lib/hash.c @@ -346,6 +346,10 @@ hash_delete (datum_t *key, hash_t * hash) for (; bucket != NULL; last = bucket, bucket = bucket->next) { node_t tmp; + if (bucket->key && !hash_keycmp(hash, key, bucket->key)) + { + continue; + } if (bucket == &hash->node[i]) { tmp.key = bucket->key; -- 2.13.6
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor