summary refs log tree commit diff
path: root/local.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-02 16:36:04 -0400
committerJune McEnroe <june@causal.agency>2020-04-02 16:37:36 -0400
commitd8d8b04e93be758d96d9cf8d8ffa3f063adf51fc (patch)
tree93d9808580d56467050916ec09a41be90cc23187 /local.c
parentDo not crash on error from accept in calico (diff)
downloadpounce-d8d8b04e93be758d96d9cf8d8ffa3f063adf51fc.tar.gz
pounce-d8d8b04e93be758d96d9cf8d8ffa3f063adf51fc.zip
Do not crash on error from accept
Diffstat (limited to 'local.c')
-rw-r--r--local.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/local.c b/local.c
index a4de1bc..0a140e6 100644
--- a/local.c
+++ b/local.c
@@ -205,7 +205,7 @@ static int recvfd(int sock) {
 
 struct tls *localAccept(int *fd, int bind) {
 	*fd = accept(bind, NULL, NULL);
-	if (*fd < 0) err(EX_IOERR, "accept");
+	if (*fd < 0) return NULL;
 
 	if (unix) {
 		int sent = recvfd(*fd);