aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/postgres.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/protocols/postgres.c')
-rw-r--r--src/lib/protocols/postgres.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/postgres.c b/src/lib/protocols/postgres.c
index 68e5d02f1..19cdec4c7 100644
--- a/src/lib/protocols/postgres.c
+++ b/src/lib/protocols/postgres.c
@@ -39,7 +39,7 @@ static void ndpi_int_postgres_add_connection(struct ndpi_detection_module_struct
void ndpi_search_postgres_tcp(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;
u_int16_t size;
if (flow->l4.tcp.postgres_stage == 0) {