Added checks for missing protocol initialization

Fixed missing LOG_ERR initialization
Fixed logging warnings
This commit is contained in:
Luca Deri
2018-07-23 14:58:16 +02:00
parent 49ed41142c
commit 5100cc0eae
5 changed files with 75 additions and 44 deletions
+1 -1
View File
@@ -230,7 +230,7 @@ void ndpi_search_mqtt (struct ndpi_detection_module_struct *ndpi_struct,
NDPI_ADD_PROTOCOL_TO_BITMASK(flow->excluded_protocol_bitmask, NDPI_PROTOCOL_MQTT);
return;
} else {
NDPI_LOG_INFO(ndpi_struct, "found Mqtt UNSUBSCRIBE\n",pt);
NDPI_LOG_INFO(ndpi_struct, "found Mqtt UNSUBSCRIBE\n");
ndpi_int_mqtt_add_connection(ndpi_struct,flow);
return;
}