mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-05-05 02:16:47 +00:00
Added check on payload len (#227)
This commit is contained in:
parent
4fe8d350a2
commit
a93c83fe6b
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ void ndpi_search_git(struct ndpi_detection_module_struct *ndpi_struct,
|
|||
memcpy(&len, &pp[offset], 4), len[4] = 0;
|
||||
git_pkt_len = atoi(len);
|
||||
|
||||
if(payload_len < git_pkt_len) {
|
||||
if((payload_len < git_pkt_len) || (git_pkt_len == 0 /* Bad */)) {
|
||||
found_git = 0;
|
||||
break;
|
||||
} else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue