diff options
Diffstat (limited to 'slowloris.c')
-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; } |