diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-01-07 23:44:27 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-01-07 23:44:27 +0000 |
commit | bab534057b855a7dbf98261d494897b3542bd9d5 (patch) | |
tree | 8f339a962fce59f79aca9d68eee75304b885d551 /ssl/s2_clnt.c | |
parent | cec2af75102df52c2f270b3751e3487f47fccb6c (diff) |
Updatde from stable branch.
Diffstat (limited to 'ssl/s2_clnt.c')
-rw-r--r-- | ssl/s2_clnt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/s2_clnt.c b/ssl/s2_clnt.c index e976ba82e9..00ac158f9b 100644 --- a/ssl/s2_clnt.c +++ b/ssl/s2_clnt.c @@ -1046,7 +1046,7 @@ int ssl2_set_certificate(SSL *s, int type, int len, const unsigned char *data) i=ssl_verify_cert_chain(s,sk); - if ((s->verify_mode != SSL_VERIFY_NONE) && (!i)) + if ((s->verify_mode != SSL_VERIFY_NONE) && (i <= 0)) { SSLerr(SSL_F_SSL2_SET_CERTIFICATE,SSL_R_CERTIFICATE_VERIFY_FAILED); goto err; |