Commit Diff


commit - b7efc9b3ebc727cc522b23b39d3eec8f34166e66
commit + f0680473a7db1e5941bffdc2ab5f80ddec209122
blob - 072126ddb17614b1c833d48856c433c128ab891c
blob + 363270dc22f396c6ba871d5448b712f226c3a791
--- gotwebd/gotweb.c
+++ gotwebd/gotweb.c
@@ -124,7 +124,7 @@ gotweb_process_request(struct request *c)
 	error = gotweb_init_transport(&c->t);
 	if (error) {
 		log_warnx("%s: %s", __func__, error->msg);
-		goto err;
+		return;
 	}
 	/* don't process any further if client disconnected */
 	if (c->sock->client_status == CLIENT_DISCONNECT)
@@ -292,7 +292,7 @@ err:
 	if (html && fcgi_printf(c, "</div>\n") == -1)
 		return;
 done:
-	if (c->t->repo != NULL && qs->action != INDEX)
+	if (c->t->repo != NULL && qs && qs->action != INDEX)
 		got_repo_close(c->t->repo);
 	if (html && srv != NULL)
 		gotweb_render_footer(c);