Decreased minimum packet payload length down to 19 from 100 for SSDP.

The minimum packet payload length is: "NOTIFY * HTTP/1.1" + 0x0d + 0x0a (19 bytes).
This commit is contained in:
Darryl Sokoloski
2018-07-20 13:26:44 -04:00
parent d9c963061b
commit 8b0e735f67
+1 -1
View File
@@ -45,7 +45,7 @@ void ndpi_search_ssdp(struct ndpi_detection_module_struct *ndpi_struct, struct n
NDPI_LOG_DBG(ndpi_struct, "search ssdp\n");
if (packet->udp != NULL) {
if (packet->payload_packet_len > 100) {
if (packet->payload_packet_len >= 19) {
if ((memcmp(packet->payload, "M-SEARCH * HTTP/1.1", 19) == 0)
|| memcmp(packet->payload, "NOTIFY * HTTP/1.1", 17) == 0) {