check packet udp != NULL
This commit is contained in:
@@ -35,7 +35,7 @@ void ndpi_search_ubntac2(struct ndpi_detection_module_struct *ndpi_struct, struc
|
||||
|
||||
NDPI_LOG(NDPI_PROTOCOL_UBNTAC2, ndpi_struct, NDPI_LOG_TRACE, "UBNTAC2 detection... plen:%i %i:%i\n", packet->payload_packet_len, ntohs(packet->udp->source), ntohs(packet->udp->dest));
|
||||
|
||||
if (packet->payload_packet_len >= 135 &&
|
||||
if (packet->udp != NULL && packet->payload_packet_len >= 135 &&
|
||||
(packet->udp->source == htons(10001) || packet->udp->dest == htons(10001)) &&
|
||||
memcmp(&(packet->payload[36]), "UBNT", 4) == 0) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user