Fixed crash caused by IPv6 traffic and KakaoTalk

This commit is contained in:
Luca Deri
2015-06-19 11:39:38 +02:00
parent b2816d72da
commit 8a2493c26a
+1 -1
View File
@@ -33,7 +33,7 @@ void ndpi_search_kakaotalk_voice(struct ndpi_detection_module_struct *ndpi_struc
unsigned char *vers;
int ver_offs;
if(packet->udp != NULL) {
if(packet->iph && (packet->udp != NULL)) {
if((packet->payload[0] == 0x81)
|| (packet->payload[1] == 0xC8)
|| (packet->payload[2] == 0x00)