Fail fast when Oscar family cannot be detected
This commit is contained in:
@@ -245,9 +245,14 @@ static void ndpi_search_oscar_tcp_connect(struct ndpi_detection_module_struct
|
||||
if (channel == DATA)
|
||||
{
|
||||
if (packet->payload_packet_len >= 8)
|
||||
{
|
||||
family = get_u_int16_t(packet->payload, 6);
|
||||
}
|
||||
else
|
||||
family = 0;
|
||||
{
|
||||
NDPI_ADD_PROTOCOL_TO_BITMASK(flow->excluded_protocol_bitmask, NDPI_PROTOCOL_OSCAR);
|
||||
return;
|
||||
}
|
||||
if (packet->payload_packet_len >= 10)
|
||||
type = get_u_int16_t(packet->payload, 8);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user