Warning fix
This commit is contained in:
@@ -318,7 +318,7 @@ static void processCertificateElements(struct ndpi_detection_module_struct *ndpi
|
||||
|
||||
/* The check "len > sizeof(dNSName) - 1" will be always false. If we add it,
|
||||
the compiler is smart enough to detect it and throws a warning */
|
||||
if((len == 0 /* Looks something went wrong */))
|
||||
if(len == 0 /* Looks something went wrong */)
|
||||
break;
|
||||
|
||||
strncpy(dNSName, (const char*)&packet->payload[i], len);
|
||||
|
||||
Reference in New Issue
Block a user