summaryrefslogtreecommitdiff
path: root/lib/hash.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-09-14 21:17:54 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-09-14 21:17:54 +0000
commit14597475b19a63ae2fc886a7747802f6d26cfa2f (patch)
tree378975f14d1566c84ee4e41479f7f222d666b19a /lib/hash.h
parentde3281a3a84e653f901f3955454c6c1249061591 (diff)
downloadcurl-14597475b19a63ae2fc886a7747802f6d26cfa2f.tar.gz
Jeff Pohlmeyer did some marvelous debugging to track this one down. We MUST
NOT free the existing hash entry when we try to add a new one that matches an existing entry. We now instead free the new one, and make the parent function use the old entry's struct instead.
Diffstat (limited to 'lib/hash.h')
-rw-r--r--lib/hash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hash.h b/lib/hash.h
index 03c771a47..9009df75a 100644
--- a/lib/hash.h
+++ b/lib/hash.h
@@ -47,7 +47,7 @@ typedef struct _curl_hash_element {
int Curl_hash_init(curl_hash *, int, curl_hash_dtor);
curl_hash *Curl_hash_alloc(int, curl_hash_dtor);
-int Curl_hash_add(curl_hash *, char *, size_t, const void *);
+void *Curl_hash_add(curl_hash *, char *, size_t, void *);
int Curl_hash_delete(curl_hash *h, char *key, size_t key_len);
void *Curl_hash_pick(curl_hash *, char *, size_t);
void Curl_hash_apply(curl_hash *h, void *user,