summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/http.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/http.c b/main/http.c
index 89bde8679..dcbfc4d66 100644
--- a/main/http.c
+++ b/main/http.c
@@ -415,6 +415,7 @@ void ast_http_send(struct ast_tcptls_session_instance *ser,
while ((len = read(fd, buf, sizeof(buf))) > 0) {
if (fwrite(buf, len, 1, ser->f) != 1) {
ast_log(LOG_WARNING, "fwrite() failed: %s\n", strerror(errno));
+ break;
}
}
}