Squashed commit of the following:
commit
615946c0d6235eeea84e52f31951737fd07f0336
Author: Masud Hasan <mashasan@cisco.com>
Date: Mon Jun 25 13:19:55 2018 -0400
appid: Fix identify_user_agent's default case
appVersion[0] = '\0';
- if (!userPattern->pattern || !packetData->pattern)
+ if (!userPattern || !userPattern->pattern || !packetData || !packetData->pattern)
return 0;
// queryEnd is 1 past the end. key1=value1&key2=value2
default:
if (match->client_id)
{
+ dominant_pattern_detected = 1;
+ service_id = APP_ID_HTTP;
+ client_id = match->client_id;
+
if (match->pattern_size <= longest_misc_match)
break;
longest_misc_match = match->pattern_size;
}
temp_ver[i] = 0;
}
- dominant_pattern_detected = 1;
- service_id = APP_ID_HTTP;
- client_id = match->client_id;
}
}
}