diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-06-13 17:07:59 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-06-14 00:49:35 +0200 |
commit | 6cc18c59a77bccdd04f65a9abcc9a2b2f88d368d (patch) | |
tree | 501226aefd0f0b3b7690db132996ef800e046cf0 /lib | |
parent | ff3876046e6ab71c48014c2a421a51d2168a4c94 (diff) |
multi: fix the transfer hash function
Follow-up from 8b987cc7eb
Reported-by: Tom van der Woerdt
Fixes #4018
Closes #4024
Diffstat (limited to 'lib')
-rw-r--r-- | lib/multi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/multi.c b/lib/multi.c index 34a74b8fb..abd8ae563 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -214,7 +214,7 @@ static struct Curl_sh_entry *sh_getentry(struct curl_hash *sh, #define TRHASH_SIZE 13 static size_t trhash(void *key, size_t key_length, size_t slots_num) { - size_t keyval = (size_t)key; /* this is a data pointer */ + size_t keyval = (size_t)*(struct Curl_easy **)key; (void) key_length; return (keyval % slots_num); |