Commit Diff


commit - 6d8d8a26e57fe41f9e4993e38ade82a654596dc6
commit + 4bec75396a2266383964555b169c36d7beb339ff
blob - 5e0028e460660d4a382d67d7a13d0cc1530cea01
blob + 8f338a00535faf44919cedec286b595dfee1a46d
--- gotweb/gotweb.c
+++ gotweb/gotweb.c
@@ -1186,9 +1186,13 @@ gw_display_open(struct gw_trans *gw_trans, enum khttp 
 static const struct got_error *
 gw_display_index(struct gw_trans *gw_trans)
 {
+	const struct got_error *error;
 	enum kcgi_err kerr;
 
-	gw_display_open(gw_trans, KHTTP_200, gw_trans->mime);
+	error = gw_display_open(gw_trans, KHTTP_200, gw_trans->mime);
+	if (error)
+		return error;
+
 	kerr = khtml_open(gw_trans->gw_html_req, gw_trans->gw_req, 0);
 	if (kerr)
 		return gw_kcgi_error(kerr);