aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2022-12-03 18:29:44 +0100
committerGitHub <noreply@github.com>2022-12-03 18:29:44 +0100
commitb9f63458e69011aea9aabdd3ffe157d0d4531cc2 (patch)
tree0266bc3d54fe5917985bdfbd88e7a3d6f65daa6e /src
parent81e1ea545ca465cda064e7cc80333fe7f0ef2aff (diff)
CI: GitHub is updating Ubuntu runners (#1817)
GitHub is moving `ubuntu-latest` to `ubuntu-22.04`: update our dependencies. See: https://github.blog/changelog/2022-11-09-github-actions-ubuntu-latest-workflows-will-use-ubuntu-22-04/ This is the reason of the recent random failures in CI. Update "newest" tested gcc to gcc-12. Fix a memory error introduced in 557bbcfc5a5165c9eb43bbdd78435796239cd3c9
Diffstat (limited to 'src')
-rw-r--r--src/lib/ndpi_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c
index e4fe28890..5d9ec40ef 100644
--- a/src/lib/ndpi_main.c
+++ b/src/lib/ndpi_main.c
@@ -6862,7 +6862,7 @@ void ndpi_parse_single_packet_line(struct ndpi_detection_module_struct *ndpi_str
line i slike "GET /....
*/
- if(strchr((char*)packet->line[0].ptr, ':') == NULL)
+ if(memchr((char*)packet->line[0].ptr, ':', packet->line[0].len) == NULL)
return;
}