Skip to content
Commit 6329b609 authored by Matt Caswell's avatar Matt Caswell
Browse files

Remove redundant check from tls1_get_curvelist



The function tls1_get_curvelist() has an explicit check to see if s->cert
is NULL or not. However the check appears *after* calling the tls1_suiteb
macro which derefs s->cert. In reality s->cert can never be NULL because
it is created in SSL_new(). If the malloc fails then the SSL_new call fails
and no SSL object is created.

Reviewed-by: default avatarTim Hudson <tjh@openssl.org>
parent 55646005
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment