X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Feap-tls.c;h=5ac0efb473eedbe1c7bbecc5ee8d1c0d1a77362a;hb=f1a34da3b2f5336e4993a729e5ac2130d0e0595a;hp=4759764ff206d0ca56312758d807c159d180bec0;hpb=b2a4275ba78b07a4e47dcefb8c9bf2fd8456184a;p=ppp.git diff --git a/pppd/eap-tls.c b/pppd/eap-tls.c index 4759764..5ac0efb 100644 --- a/pppd/eap-tls.c +++ b/pppd/eap-tls.c @@ -1206,7 +1206,10 @@ int ssl_verify_callback(int ok, X509_STORE_CTX * ctx) * If acting as client and the name of the server wasn't specified * explicitely, we can't verify the server authenticity */ - if (!ets->peer[0] || !strcmp(tls_verify_method, TLS_VERIFY_NONE)) { + if (!tls_verify_method) + tls_verify_method = TLS_VERIFY_NONE; + + if (!ets->peer[0] || !strcmp(TLS_VERIFY_NONE, tls_verify_method)) { warn("Certificate verication disabled or no peer name was specified"); return ok; }