aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r--src/lib/ndpi_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c
index c98115cfe..3ecff0fb0 100644
--- a/src/lib/ndpi_main.c
+++ b/src/lib/ndpi_main.c
@@ -7902,7 +7902,7 @@ static int ndpi_init_packet(struct ndpi_detection_module_struct *ndpi_str,
else if(opt_len == 3)
val = (options[j] << 16) + (options[j+1] << 8) + options[j+2];
else if(opt_len == 4)
- val = (options[j] << 24) + (options[j+1] << 16) + (options[j+2] << 8) + options[j+3];
+ val = ((u_int32_t)options[j] << 24) + (options[j+1] << 16) + (options[j+2] << 8) + options[j+3];
if(kind == 2)
tcp_mss = val;