Merge pull request #869 from disconnect3d/patch-2
Fix incorrect "<iq from=\"' parsing
This commit is contained in:
@@ -135,7 +135,7 @@ void ndpi_search_jabber_tcp(struct ndpi_detection_module_struct *ndpi_struct, st
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/* need message to or type for file-transfer */
|
/* 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");
|
NDPI_LOG_DBG2(ndpi_struct, "JABBER <iq from=\"\n");
|
||||||
lastlen = packet->payload_packet_len - 11;
|
lastlen = packet->payload_packet_len - 11;
|
||||||
for (x = 10; x < lastlen; x++) {
|
for (x = 10; x < lastlen; x++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user