summaryrefslogtreecommitdiffhomepage
path: root/src/conns.h
diff options
context:
space:
mode:
authorrofl0r <rofl0r@users.noreply.github.com>2020-09-12 21:33:59 +0100
committerrofl0r <rofl0r@users.noreply.github.com>2020-09-15 23:12:00 +0100
commit155bfbbe87daae596d9c77ea3ee9bf9624afcce0 (patch)
treeb9a4f6a05c039dcb9c4ff08de179cc61faeeae72 /src/conns.h
parent34a8b28414de419c984f832a299383f6d7149f72 (diff)
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.
Diffstat (limited to 'src/conns.h')
-rw-r--r--src/conns.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conns.h b/src/conns.h
index 393e5d4..dc1670d 100644
--- a/src/conns.h
+++ b/src/conns.h
@@ -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;