aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuca Deri <lucaderi@users.noreply.github.com>2015-08-30 22:42:33 +0200
committerLuca Deri <lucaderi@users.noreply.github.com>2015-08-30 22:42:33 +0200
commit9450226675cc395b99638b2e63eae038e898e0b9 (patch)
tree68334eee8c0c9742480fd728bb443df29599e63e /src
parentaa6640e1c0bc7088290e8b262bb874a307d3edba (diff)
parent8f8052735cbd1f5561ba6069c4359f1f9f50e2c1 (diff)
Merge pull request #91 from rs-dev/steam_NDPI_PARSE_PACKET_LINE_INFO
Make sure packet->user_agent_line.ptr is up to date before using it.
Diffstat (limited to 'src')
-rw-r--r--src/lib/protocols/steam.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/protocols/steam.c b/src/lib/protocols/steam.c
index fe7b9d161..7ed0eae29 100644
--- a/src/lib/protocols/steam.c
+++ b/src/lib/protocols/steam.c
@@ -34,6 +34,7 @@ static void ndpi_int_steam_add_connection(struct ndpi_detection_module_struct *n
static void ndpi_check_steam_http(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) {
struct ndpi_packet_struct *packet = &flow->packet;
+ NDPI_PARSE_PACKET_LINE_INFO(ndpi_struct, flow, packet);
if (packet->user_agent_line.ptr != NULL
&& packet->user_agent_line.len >= 23
&& memcmp(packet->user_agent_line.ptr, "Valve/Steam HTTP Client", 23) == 0) {