summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>2019-08-19 17:49:56 +0200
committerDamjan Marion <dmarion@me.com>2019-09-23 12:41:15 +0000
commit2e0f929b60073b97be0ffdc2d9523cc6c8e6368b (patch)
treef9a2310716ab139ac658474575d7190f9bceeaea
parenta583e2d75bacf0bb70158f69a9a4d570e23f218a (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> (cherry picked from commit 1682b51c416561b083d84194d49ff617e070eb47)
-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);