Handle SSL_get_current_cipher returning NULL
This commit is contained in:
kenstir 2021-06-22 12:59:29 -04:00 committed by GitHub
parent 6464d33767
commit 0dbfd88edd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)