aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/websocket.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/protocols/websocket.c')
-rw-r--r--src/lib/protocols/websocket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/websocket.c b/src/lib/protocols/websocket.c
index 853ce8094..84aaf12f0 100644
--- a/src/lib/protocols/websocket.c
+++ b/src/lib/protocols/websocket.c
@@ -61,7 +61,7 @@ static void set_websocket_detected(struct ndpi_detection_module_struct *ndpi_str
static void ndpi_check_websocket(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
- struct ndpi_packet_struct *packet = &flow->packet;
+ struct ndpi_packet_struct *packet = &ndpi_struct->packet;
if (packet->payload_packet_len < sizeof(u_int16_t))
{