Fail when Oscar family or type is 0
This commit is contained in:
@@ -248,15 +248,15 @@ static void ndpi_search_oscar_tcp_connect(struct ndpi_detection_module_struct
|
|||||||
family = get_u_int16_t(packet->payload, 6);
|
family = get_u_int16_t(packet->payload, 6);
|
||||||
else
|
else
|
||||||
family = 0;
|
family = 0;
|
||||||
if (family == 0)
|
|
||||||
{
|
|
||||||
NDPI_ADD_PROTOCOL_TO_BITMASK(flow->excluded_protocol_bitmask, NDPI_PROTOCOL_OSCAR);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (packet->payload_packet_len >= 10)
|
if (packet->payload_packet_len >= 10)
|
||||||
type = get_u_int16_t(packet->payload, 8);
|
type = get_u_int16_t(packet->payload, 8);
|
||||||
else
|
else
|
||||||
type = 0;
|
type = 0;
|
||||||
|
if (family == 0 || type == 0)
|
||||||
|
{
|
||||||
|
NDPI_ADD_PROTOCOL_TO_BITMASK(flow->excluded_protocol_bitmask, NDPI_PROTOCOL_OSCAR);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/* Family 0x0001 */
|
/* Family 0x0001 */
|
||||||
if (family == htons(GE_SE_CTL))
|
if (family == htons(GE_SE_CTL))
|
||||||
|
|||||||
Reference in New Issue
Block a user