diff options
author | Michele Campus <fci1908@gmail.com> | 2016-09-14 10:35:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-14 10:35:07 +0200 |
commit | 9e9b64a7e73009ca31e630a4878ceb216a8dd663 (patch) | |
tree | 1cec0373398e216e875954252fa659597ee1bcd0 /src | |
parent | 6b4b7a9083aa60c803f78540d16cc07f3c419f60 (diff) | |
parent | 0a73a9bd9c55fa4654c02fbaa60f38d12ffd7554 (diff) |
Merge pull request #266 from tianzhishuizhu/dev
check udp
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/protocols/ubntac2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/ubntac2.c b/src/lib/protocols/ubntac2.c index 7763c18d1..3015f4211 100644 --- a/src/lib/protocols/ubntac2.c +++ b/src/lib/protocols/ubntac2.c @@ -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) { |