Need definition of struct timeval for dtls1.h which broke WIN32 builds,
[openssl.git] / ssl / s2_srvr.c
index b43a046aa6cdca3bf3f9bb1e764d033efed41e05..c3b4e1d1c7557aa98aa5bbe1532ef84844c678d3 100644 (file)
@@ -1054,7 +1054,7 @@ static int request_certificate(SSL *s)
 
        i=ssl_verify_cert_chain(s,sk);
 
-       if (i)  /* we like the packet, now check the chksum */
+       if (i > 0)      /* we like the packet, now check the chksum */
                {
                EVP_MD_CTX ctx;
                EVP_PKEY *pkey=NULL;
@@ -1083,7 +1083,7 @@ static int request_certificate(SSL *s)
                EVP_PKEY_free(pkey);
                EVP_MD_CTX_cleanup(&ctx);
 
-               if (i
+               if (i > 0)
                        {
                        if (s->session->peer != NULL)
                                X509_free(s->session->peer);