Skip to content

Commit

Permalink
fixed numeric truncation error in diameter.c (#2034)
Browse files Browse the repository at this point in the history
  • Loading branch information
headshog authored Jul 5, 2023
1 parent d51f892 commit 076ba96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/protocols/diameter.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ static int is_diameter(struct ndpi_packet_struct *packet)
diameter->flags == DIAMETER_ERROR ||
diameter->flags == DIAMETER_RETRASM)) {

u_int16_t com_code = diameter->com_code[2] + (diameter->com_code[1] << 8) + (diameter->com_code[0] << 8);
u_int32_t com_code = diameter->com_code[2] + (diameter->com_code[1] << 8) + (diameter->com_code[0] << 8);

if(com_code == AC || com_code == AS ||
com_code == CC || com_code == CE ||
Expand Down

0 comments on commit 076ba96

Please sign in to comment.