Only set the verify callback if there's one to set!

This commit is contained in:
Lutz Jänicke
2001-07-31 10:20:53 +00:00
parent 01fc70323f
commit dd186f600d

View File

@@ -461,7 +461,8 @@ int ssl_verify_cert_chain(SSL *s,STACK_OF(X509) *sk)
X509_STORE_CTX_purpose_inherit(&ctx, i, s->purpose, s->trust);
X509_STORE_CTX_set_verify_cb(&ctx, s->verify_callback);
if (s->verify_callback)
X509_STORE_CTX_set_verify_cb(&ctx, s->verify_callback);
if (s->ctx->app_verify_callback != NULL)
i=s->ctx->app_verify_callback(&ctx); /* should pass app_verify_arg */