aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>2019-08-19 17:49:56 +0200
committerDave Wallace <dwallacelf@gmail.com>2019-08-19 17:03:38 +0000
commit1682b51c416561b083d84194d49ff617e070eb47 (patch)
tree9def26e09dabbc38a3bd89ceb5eb73e0a058f33d /src
parentff47fb64569ddbd65ef34c33e7cafc030c69a34e (diff)
quic: fix rx_callback refactoring
* check_quic_client_connected might allocate ctx and invalidate our pointer Type: fix Change-Id: I885ca5a1a6db9a7765c9047a7df9cdf66c94f1cb Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/quic/quic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/quic/quic.c b/src/plugins/quic/quic.c
index 8abb850084d..6bf0e5eb726 100644
--- a/src/plugins/quic/quic.c
+++ b/src/plugins/quic/quic.c
@@ -2053,10 +2053,10 @@ quic_app_rx_callback (session_t * udp_session)
if (packets_ctx[i].thread_index != thread_index)
continue;
+ check_quic_client_connected (&packets_ctx[i]);
ctx =
quic_ctx_get (packets_ctx[i].ctx_index,
packets_ctx[i].thread_index);
- check_quic_client_connected (&packets_ctx[i]);
quic_send_packets (ctx);
}
svm_fifo_dequeue_drop (f, fifo_offset);