summaryrefslogtreecommitdiff
path: root/usr.sbin/hoststated/hoststated.c
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2007-11-20 15:54:56 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2007-11-20 15:54:56 +0000
commite6c7ec852fff7782025440ba3dc423ef88e77468 (patch)
treeded00acf8d5fff247ba0242a56098a6f229155c4 /usr.sbin/hoststated/hoststated.c
parent06cda98f2ac65d76367d70562e5e25990af9200b (diff)
it may be desirable to send a HTTP error page with error code and a
meaningful message if a HTTP/HTTPS relay closes the connection for some reason. for example, a "403 Forbidden" if the request was rejected by a filter. this will be enabled with the "return error" option and is disabled by default, the standard behaviour is to silently drop the connection; the browser may display an empty page in this case. the look+feel of the HTTP error page can be customized with a CSS style sheet, but we do not intend to allow customization of the error page contents (hoststated is not a webserver!). ok pyr@
Diffstat (limited to 'usr.sbin/hoststated/hoststated.c')
-rw-r--r--usr.sbin/hoststated/hoststated.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/hoststated/hoststated.c b/usr.sbin/hoststated/hoststated.c
index 7d800f39a36..0d44c297bc2 100644
--- a/usr.sbin/hoststated/hoststated.c
+++ b/usr.sbin/hoststated/hoststated.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hoststated.c,v 1.54 2007/11/19 15:31:36 reyk Exp $ */
+/* $OpenBSD: hoststated.c,v 1.55 2007/11/20 15:54:55 reyk Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -500,6 +500,8 @@ purge_config(struct hoststated *env, u_int8_t what)
TAILQ_REMOVE(env->protos, proto, entry);
purge_tree(&proto->request_tree);
purge_tree(&proto->response_tree);
+ if (proto->style != NULL)
+ free(proto->style);
free(proto);
}
free(env->protos);