Compare commits
1
Commits
2.2
...
1.8-stable
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6450ae256c |
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user