diff options
author | cbdev <cb@cbcdn.com> | 2025-03-28 12:32:00 +0100 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2025-03-28 12:32:00 +0100 |
commit | aa43a7cbb02047b0ac19920149a8459f204fc1e3 (patch) | |
tree | cdfe0ca4991c4fb7677ab1c394c5bdab00924e0f | |
parent | 8b924f250dfe116b2c2d2019bd2cf4ab71cff6e7 (diff) | |
download | preload-slowloris-aa43a7cbb02047b0ac19920149a8459f204fc1e3.tar.gz preload-slowloris-aa43a7cbb02047b0ac19920149a8459f204fc1e3.tar.bz2 preload-slowloris-aa43a7cbb02047b0ac19920149a8459f204fc1e3.zip |
Fix error return
-rw-r--r-- | slowloris.c | 2 |
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; } |