From 1583f6e5b388e5fe29f27632ea60c0be3eba5478 Mon Sep 17 00:00:00 2001 From: Christopher Wellons Date: Tue, 5 Feb 2019 23:25:15 -0500 Subject: [PATCH] Add missing break when send() fails --- endlessh.c | 1 + 1 file changed, 1 insertion(+) diff --git a/endlessh.c b/endlessh.c index 9f1fb19..8ecd42a 100644 --- a/endlessh.c +++ b/endlessh.c @@ -689,6 +689,7 @@ main(int argc, char **argv) continue; /* try again */ } else if (out == -1) { client_destroy(client); + break; } else { logmsg(LOG_DEBUG, "send(%d) = %d", fd, (int)out); client->bytes_sent += out;