From aa43a7cbb02047b0ac19920149a8459f204fc1e3 Mon Sep 17 00:00:00 2001 From: cbdev Date: Fri, 28 Mar 2025 12:32:00 +0100 Subject: Fix error return --- slowloris.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slowloris.c b/slowloris.c index b4a7ac1..1bb5337 100644 --- a/slowloris.c +++ b/slowloris.c @@ -30,7 +30,7 @@ ssize_t send(int sockfd, const void* buf, size_t len, int flags){ for(size_t u = 0; u < len; u++){ ssize_t sent = real_send(sockfd, buf + u, 1, flags); if(sent < 0){ - return 1; + return -1; } rv += sent; } -- cgit v1.2.3