diff --git a/app/src/main/jni/netguard/tcp.c b/app/src/main/jni/netguard/tcp.c index 56c8d201..cb49f36c 100644 --- a/app/src/main/jni/netguard/tcp.c +++ b/app/src/main/jni/netguard/tcp.c @@ -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