Skip to content

Commit

Permalink
Added options len chck
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaderi committed Oct 18, 2024
1 parent b014782 commit fdc8186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/ndpi_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -6963,7 +6963,7 @@ static int ndpi_init_packet(struct ndpi_detection_module_struct *ndpi_str,
break;
else if(kind == 1) /* NOP */
i++;
else {
else if((i+1) < options_len) {
u_int8_t len = options[i+1];

#ifdef DEBUG_TCP_OPTIONS
Expand Down

0 comments on commit fdc8186

Please sign in to comment.