diff options
author | theirix <theirix@gmail.com> | 2016-07-25 17:02:39 +0300 |
---|---|---|
committer | theirix <theirix@gmail.com> | 2016-07-25 17:02:39 +0300 |
commit | 01ac65eee4582c6781ac08eec7e6ef079f1fde5f (patch) | |
tree | 64f17005c0608ab6ef6b022c1b01b4462845aafe /src | |
parent | 470901dc58f2c82c24abb8c9e82fc40f503c50db (diff) |
Fail fast when Oscar family cannot be detected
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/protocols/oscar.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/protocols/oscar.c b/src/lib/protocols/oscar.c index 2262a30d5..3bbf23354 100644 --- a/src/lib/protocols/oscar.c +++ b/src/lib/protocols/oscar.c @@ -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 |