diff --git a/wpa_supplicant-2.9_standard/src/crypto/tls_openssl.c b/wpa_supplicant-2.9_standard/src/crypto/tls_openssl.c index 48c3dd1463f318ee1f267b53ff12215ebc9332a1..ed4655f7942dc2e751a5ce40c2e1098d7747083b 100644 --- a/wpa_supplicant-2.9_standard/src/crypto/tls_openssl.c +++ b/wpa_supplicant-2.9_standard/src/crypto/tls_openssl.c @@ -3367,9 +3367,7 @@ static int tls_connection_client_cert(struct tls_connection *conn, return -1; } - if (bio) { - x509 = PEM_read_bio_X509(bio, NULL, NULL, NULL); - } + x509 = PEM_read_bio_X509(bio, NULL, NULL, NULL); if (x509) { if (SSL_use_certificate(conn->ssl, x509) == 1) { ret = 0;