summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-11-02 04:04:39 -0400
committerJune McEnroe <june@causal.agency>2019-11-02 04:04:39 -0400
commit868d2a69a793351698a771644f1cb65a6af88c4b (patch)
tree7def164ee90d464ae7655b247c120b814eddcfde
parentDocument pounce -U flag (diff)
downloadpounce-868d2a69a793351698a771644f1cb65a6af88c4b.tar.gz
pounce-868d2a69a793351698a771644f1cb65a6af88c4b.zip
Don't try to sendfd if connect failed
-rw-r--r--dispatch.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/dispatch.c b/dispatch.c
index 3f28e7f..f5a83c6 100644
--- a/dispatch.c
+++ b/dispatch.c
@@ -263,8 +263,10 @@ int main(int argc, char *argv[]) {
 #endif
 			if (error) warn("%s", name);
 
-			len = sendfd(sock, event.ptr[i].fd);
-			if (len < 0) warn("%s", name);
+			if (!error) {
+				len = sendfd(sock, event.ptr[i].fd);
+				if (len < 0) warn("%s", name);
+			}
 
 			close(sock);
 			eventRemove(i);
hn Keeping 2015-08-13Remove redundant includesJohn Keeping 2015-08-13Makefile: include Git's config.mak.unameJohn Keeping 2015-08-13tests: allow shell to be overriddenJohn Keeping 2015-08-13redirect: cleanlinessJason A. Donenfeld 2015-08-13redirect: be more careful for different cgi setupsJason A. Donenfeld 2015-08-12ui-log: fix double countingJohn Keeping 2015-08-12log: allow users to follow a fileJohn Keeping 2015-08-12shared: make cgit_diff_tree_cb publicJohn Keeping 2015-08-12t0110: Chain together using &&Jason A. Donenfeld 2015-08-12about: always ensure page has a trailing slashJason A. Donenfeld 2015-08-12filters: apply HTML escapingLazaros Koromilas 2015-08-12git: update to v2.5.0Christian Hesse 2015-08-12Fix processing of repo.hide and repo.ignoreDaniel Reichelt