Fixed send window calculation

This commit is contained in:
M66B 2018-01-23 12:42:46 +01:00
parent 28e30b7bdf
commit 0871664613
1 changed files with 1 additions and 1 deletions

View File

@ -821,7 +821,7 @@ jboolean handle_tcp(const struct arguments *args,
if (!tcphdr->syn)
cur->tcp.time = time(NULL);
cur->tcp.send_window = ntohs(tcphdr->window) << cur->tcp.send_scale;
cur->tcp.send_window = ((uint32_t) ntohs(tcphdr->window)) << cur->tcp.send_scale;
// Do not change the order of the conditions