Warning fix

This commit is contained in:
Luca Deri
2021-01-07 11:07:17 +01:00
parent 5f7b9d8024
commit 367184628e
+1 -1
View File
@@ -1281,7 +1281,7 @@ static void process_chlo(struct ndpi_detection_module_struct *ndpi_struct,
NDPI_LOG_DBG(ndpi_struct, "Something went wrong in tags iteration\n");
/* Add check for missing SNI */
if((flow->protos.stun_ssl.ssl.client_requested_server_name[0] == 0)) {
if(flow->protos.stun_ssl.ssl.client_requested_server_name[0] == '\0') {
/* This is a bit suspicious */
NDPI_SET_BIT(flow->risk, NDPI_TLS_MISSING_SNI);
}