summaryrefslogtreecommitdiff
path: root/src/htshash.h
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-05-14 17:48:04 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-05-14 17:48:04 +0000
commitfea8122ed35c8a7895fc1195d4257fb6c42fe128 (patch)
tree37736ffc0315ff3696a1b3ea036dfb697083f6a2 /src/htshash.h
parent7323230eb3c8fc4818d0cf34974497b3782a7279 (diff)
Fixed hashtable corruption because of dirty code directly modifying the host address in memory, leading to have hashtable positions not anymore valid.
This issue was especially triggered when a redirect was processed ("Warning moved treated for .." messages) * closes: #43
Diffstat (limited to 'src/htshash.h')
-rw-r--r--src/htshash.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/htshash.h b/src/htshash.h
index 4810513..6a71cba 100644
--- a/src/htshash.h
+++ b/src/htshash.h
@@ -56,6 +56,7 @@ void hash_free(hash_struct *hash);
int hash_read(const hash_struct * hash, const char *nom1, const char *nom2,
hash_struct_type type);
void hash_write(hash_struct * hash, int lpos);
+void hash_invalidate_entry(hash_struct * hash, int lpos);
int *hash_calc_chaine(hash_struct * hash, hash_struct_type type, int pos);
unsigned long int hash_cle(const char *nom1, const char *nom2);
#endif