m) do not try to delete stk from shi_ctx (#295)

stk never be inserted to shi_ctx, so we don't need try to delete it.

Co-authored-by: wangfuyu <ivanfywang@gmail.com>
This commit is contained in:
wangfuyu 2021-06-15 22:35:00 +08:00 committed by GitHub
parent 47440e4eaf
commit ed94ac1253
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 6 deletions

View File

@ -3340,12 +3340,6 @@ lsquic_enc_session_handle_chlo(enc_session_t *enc_session_p,
determine_keys(enc_session);
enc_session->have_key = 1;
if (lsquic_str_len(&enc_session->hs_ctx.stk) > 0)
{
shi->shi_delete(shi_ctx, lsquic_str_cstr(&enc_session->hs_ctx.stk),
lsquic_str_len(&enc_session->hs_ctx.stk));
}
LSQ_DEBUG("lsquic_enc_session_handle_chlo call gen_shlo_data");
len = gen_shlo_data(out, *out_len, enc_session, version, peer,
t, nonce);