aboutsummaryrefslogtreecommitdiff
path: root/slowloris.c
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2025-03-28 12:32:00 +0100
committercbdev <cb@cbcdn.com>2025-03-28 12:32:00 +0100
commitaa43a7cbb02047b0ac19920149a8459f204fc1e3 (patch)
treecdfe0ca4991c4fb7677ab1c394c5bdab00924e0f /slowloris.c
parent8b924f250dfe116b2c2d2019bd2cf4ab71cff6e7 (diff)
downloadpreload-slowloris-aa43a7cbb02047b0ac19920149a8459f204fc1e3.tar.gz
preload-slowloris-aa43a7cbb02047b0ac19920149a8459f204fc1e3.tar.bz2
preload-slowloris-aa43a7cbb02047b0ac19920149a8459f204fc1e3.zip
Fix error return
Diffstat (limited to 'slowloris.c')
-rw-r--r--slowloris.c2
1 files changed, 1 insertions, 1 deletions
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;
}