Added missing check

This commit is contained in:
Luca Deri
2023-04-28 23:08:54 +02:00
parent 6e9dce357b
commit 6b803f48dc
+4 -1
View File
@@ -7947,7 +7947,10 @@ ndpi_protocol ndpi_guess_undetected_protocol_v4(struct ndpi_detection_module_str
return ret;
if((proto == IPPROTO_TCP) || (proto == IPPROTO_UDP)) {
rc = ndpi_search_tcp_or_udp_raw(ndpi_str, flow, proto, shost, dhost);
if(shost && dhost)
rc = ndpi_search_tcp_or_udp_raw(ndpi_str, flow, proto, shost, dhost);
else
rc = NDPI_PROTOCOL_UNKNOWN;
if(rc != NDPI_PROTOCOL_UNKNOWN) {
ret.app_protocol = rc,