diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-06-13 17:07:59 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-06-13 17:07:59 +0200 |
commit | 7abc88664f7753fb151f11a0fb5c1be5b31eef91 (patch) | |
tree | 882cbd19c1016340a253c57912bd702ea9857b40 | |
parent | 9dd731c94e29e5422c5bd2811219a0987d4aeb91 (diff) | |
download | curl-7abc88664f7753fb151f11a0fb5c1be5b31eef91.tar.gz |
multi: fix the transfer hash functionbagder/multi-trhash
Follow-up from 8b987cc7eb
Reported-by: Tom van der Woerdt
Fixes #4018
-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); |