Skip to content

Commit

Permalink
Merge pull request #5204 from rgerhards/fix-5050249a1e
Browse files Browse the repository at this point in the history
tcpflood: fix today's programming error
  • Loading branch information
rgerhards committed Jul 28, 2023
2 parents 8dac9d2 + 4455f63 commit 27e1da2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/tcpflood.c
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ sendPlainTCP(int socknum, char *buf, size_t lenBuf, int *ret_errno)

lenSent = 0;
while(lenSent != lenBuf) {
r = send(sockArray[socknum], buf, lenBuf, 0);
r = send(sockArray[socknum], buf + lenSent, lenBuf - lenSent, 0);
if(r > 0) {
lenSent += r;
} else {
Expand Down

0 comments on commit 27e1da2

Please sign in to comment.