Skip to content
Snippets Groups Projects
Commit 2f6f9d20 authored by Leif Johansson's avatar Leif Johansson
Browse files

Merge pull request #2 from fredrikt/master

Avoid DoS
parents bddf78e2 89f24cf3
No related branches found
No related tags found
No related merge requests found
......@@ -2077,7 +2077,7 @@ static int write_all(int sock, unsigned char *data, size_t len)
while (len > 0) {
r = send(sock, (void *)data, len, 0);
r = send(sock, (void *)data, len, MSG_NOSIGNAL);
if (r == -1) {
if (errno == EPIPE) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment