diff options
author | Luca Deri <deri@ntop.org> | 2019-12-08 23:47:25 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2019-12-08 23:47:25 +0100 |
commit | 11401edfe7c4c9f9728c64172a48c2ea4401c750 (patch) | |
tree | d4b97ba508c1248d8555a86cd86462cfaea11902 /src/lib/protocols/irc.c | |
parent | 239842b821763a2afc62d859a186f673ba09b171 (diff) | |
parent | d37b69ce9c9caa979de7c511e33cb7d1cf5fbc91 (diff) |
Merge branch 'dev' of https://github.com/ntop/nDPI into dev
Diffstat (limited to 'src/lib/protocols/irc.c')
-rw-r--r-- | src/lib/protocols/irc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/irc.c b/src/lib/protocols/irc.c index 5ae0e34f7..37cfbe1ed 100644 --- a/src/lib/protocols/irc.c +++ b/src/lib/protocols/irc.c @@ -495,7 +495,7 @@ void ndpi_search_irc_tcp(struct ndpi_detection_module_struct *ndpi_struct, struc packet->parsed_lines = 0; } for (i = 0; i < packet->parsed_lines; i++) { - if (packet->line[i].ptr[0] == ':') { + if ((packet->line[i].len > 0) && packet->line[i].ptr[0] == ':') { flow->l4.tcp.irc_3a_counter++; if (flow->l4.tcp.irc_3a_counter == 7) { /* ':' == 0x3a */ NDPI_LOG_INFO(ndpi_struct, "found irc. 0x3a. seven times."); |