Compare commits
1
Commits
dev
...
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;
|
memcpy(&len, &pp[offset], 4), len[4] = 0;
|
||||||
git_pkt_len = atoi(len);
|
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;
|
found_git = 0;
|
||||||
break;
|
break;
|
||||||
} else
|
} else
|
||||||
|
|||||||
Reference in New Issue
Block a user