replace leftover users of hashmap with htab

also fixes a bug where the ErrorFile directive would create a
new hashmap on every added item, effectively allowing only
the use of the last specified errornumber, and producing memory
leaks on each config reload.
This commit is contained in:
rofl0r committed 2020-09-15 23:12:00 +01:00
1 parent 34a8b28414
commit 155bfbbe87
12 files changed
+89 -687

No files matched your search

+2 -2
View File
@@ -22,7 +22,7 @@
#define TINYPROXY_CONNS_H
#include "main.h"
#include "hashmap.h"
#include "hsearch.h"
/*
* Connection Definition
@@ -45,7 +45,7 @@ struct conn_s {
* This structure stores key -> value mappings for substitution
* in the error HTML files.
*/
hashmap_t error_variables;
struct htab *error_variables;
int error_number;
char *error_string;