typo
authorDr. Stephen Henson <steve@openssl.org>
Thu, 2 Feb 2012 19:18:24 +0000 (19:18 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 2 Feb 2012 19:18:24 +0000 (19:18 +0000)
ssl/ssl_cert.c

index 2f43d2e..c48aa20 100644 (file)
@@ -1002,7 +1002,7 @@ int ssl_add_cert_chain(SSL *s, CERT_PKEY *cpk, unsigned long *l)
                                {
                                x = sk_X509_value(xs_ctx.chain, i);
 
-                               if (ssl_add_cert_to_buf(buf, l, x))
+                               if (!ssl_add_cert_to_buf(buf, l, x))
                                        {
                                        X509_STORE_CTX_cleanup(&xs_ctx);
                                        return 0;