Ensure that vent->smeth != NULL before we call vent->smeth()
authorMatt Caswell <matt@openssl.org>
Wed, 2 Nov 2016 11:15:08 +0000 (11:15 +0000)
committerMatt Caswell <matt@openssl.org>
Wed, 9 Nov 2016 16:03:08 +0000 (16:03 +0000)
commitbf85ef1b60d03c76e85ec06be3999ead4533f092
tree69850d55e616855905a2865b47bd8171856ef1b6
parent16bce0e08b16b28a1953795bde3f913957b08ef2
Ensure that vent->smeth != NULL before we call vent->smeth()

We can end up with a NULL SSL_METHOD function if a method has been
disabled. If that happens then we shouldn't call vent->smeth().

Reviewed-by: Rich Salz <rsalz@openssl.org>
ssl/statem/statem_lib.c