In function tls_verify_cb(), X509_STORE_CTX_get_current_cert() may return NULL, and it will be dereferenced by X509_get_subject_name(). Signed-hostap: Eytan Lifshitz <eytan.lifshitz@intel.com>