aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/jabber.c
diff options
context:
space:
mode:
authorLuca Deri <lucaderi@users.noreply.github.com>2020-04-15 08:36:27 +0200
committerGitHub <noreply@github.com>2020-04-15 08:36:27 +0200
commit9cba06a080532797d6b14a0ef72fb543d60cdff0 (patch)
tree10bf538422a48cff55fa0db3c15854f894251f2a /src/lib/protocols/jabber.c
parent794f7fa124f1e6bb3c0927b0dd1cc80c1cdbaecb (diff)
parentfa15e170b41d9b1d301819eb46bc7f3fb32df297 (diff)
Merge pull request #869 from disconnect3d/patch-2
Fix incorrect "<iq from=\"' parsing
Diffstat (limited to 'src/lib/protocols/jabber.c')
-rw-r--r--src/lib/protocols/jabber.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/jabber.c b/src/lib/protocols/jabber.c
index 6ee96e5af..9302f84d7 100644
--- a/src/lib/protocols/jabber.c
+++ b/src/lib/protocols/jabber.c
@@ -135,7 +135,7 @@ void ndpi_search_jabber_tcp(struct ndpi_detection_module_struct *ndpi_struct, st
return;
}
/* need message to or type for file-transfer */
- if (memcmp(packet->payload, "<iq from=\"", 8) == 0 || memcmp(packet->payload, "<iq from=\'", 8) == 0) {
+ if (memcmp(packet->payload, "<iq from=\"", 10) == 0 || memcmp(packet->payload, "<iq from=\'", 10) == 0) {
NDPI_LOG_DBG2(ndpi_struct, "JABBER <iq from=\"\n");
lastlen = packet->payload_packet_len - 11;
for (x = 10; x < lastlen; x++) {