summaryrefslogtreecommitdiffhomepage
path: root/src/html-error.h
diff options
context:
space:
mode:
authorrofl0r <rofl0r@users.noreply.github.com>2020-09-12 21:00:17 +0100
committerrofl0r <rofl0r@users.noreply.github.com>2020-09-12 21:38:04 +0100
commit4847d8cdb3bfd9b30a10bfed848174250475a69b (patch)
tree8b5286b2697b10a71511b9849c500254d52f6ceb /src/html-error.h
parentdf9074db6e68fbf7847fab0bc33b3a3c9a94620d (diff)
add_new_errorpage(): fix segfault accessing global config
another fallout of the config refactoring finished by 2e02dce0c3de4a231f74b44c34647406de507768. apparently no one using the ErrorFile directive used git master during the last months, as there have been no reports about this issue.
Diffstat (limited to 'src/html-error.h')
-rw-r--r--src/html-error.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/html-error.h b/src/html-error.h
index 03cec98..c133cef 100644
--- a/src/html-error.h
+++ b/src/html-error.h
@@ -23,8 +23,9 @@
/* Forward declaration */
struct conn_s;
+struct config_s;
-extern int add_new_errorpage (char *filepath, unsigned int errornum);
+extern int add_new_errorpage (struct config_s *, char *filepath, unsigned int errornum);
extern int send_http_error_message (struct conn_s *connptr);
extern int indicate_http_error (struct conn_s *connptr, int number,
const char *message, ...);