Skip to content

Commit

Permalink
Fix #298 (#299)
Browse files Browse the repository at this point in the history
Handle SSL_get_current_cipher returning NULL
  • Loading branch information
kenstir authored Jun 22, 2021
1 parent 6464d33 commit 0dbfd88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/liblsquic/lsquic_enc_sess_ietf.c
Original file line number Diff line number Diff line change
Expand Up @@ -2568,7 +2568,7 @@ iquic_esf_keysize (enc_session_t *enc_session_p)
else if (enc_sess->esi_ssl)
{
cipher = SSL_get_current_cipher(enc_sess->esi_ssl);
id = SSL_CIPHER_get_id(cipher);
id = cipher ? SSL_CIPHER_get_id(cipher) : 0;

/* RFC 8446, Appendix B.4 */
switch (id)
Expand Down

0 comments on commit 0dbfd88

Please sign in to comment.