aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/quic
diff options
context:
space:
mode:
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>2019-08-05 14:07:15 +0200
committerDave Wallace <dwallacelf@gmail.com>2019-08-05 15:15:27 +0000
commit09db37a5d40d393c4b9b44da32bc86943d53f8d3 (patch)
treec64bbb54c7c48c332dc22ab9138f347f205aaa9a /src/plugins/quic
parentb1b98f5f5aa2a54d9b383012298334fcccf9acac (diff)
quic: fix memset 0 picotls depends on
Type: fix Change-Id: Id03cc839662179f8543b0b3f540932e1d87f1cea Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src/plugins/quic')
-rw-r--r--src/plugins/quic/quic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/quic/quic.c b/src/plugins/quic/quic.c
index 43ac87990da..637969c2531 100644
--- a/src/plugins/quic/quic.c
+++ b/src/plugins/quic/quic.c
@@ -875,6 +875,7 @@ quic_store_quicly_ctx (application_t * app, u8 is_client)
quicly_ctx_data_t *quicly_ctx_data =
clib_mem_alloc (sizeof (quicly_ctx_data_t));
+ clib_memset (quicly_ctx_data, 0, sizeof (*quicly_ctx_data)); /* picotls depends on this */
quicly_ctx = &quicly_ctx_data->quicly_ctx;
ptls_context_t *ptls_ctx = &quicly_ctx_data->ptls_ctx;
ptls_ctx->random_bytes = ptls_openssl_random_bytes;