crypt32(6/17): Not finding an issuer shouldn't cause chain creation to fail

Juan Lang juan.lang at gmail.com
Thu Sep 6 12:06:42 CDT 2007


--Juan
-------------- next part --------------
From 2a2de0e326a6ae2c22a1b0681dc94478933bf808 Mon Sep 17 00:00:00 2001
From: Juan Lang <juan.lang at gmail.com>
Date: Thu, 6 Sep 2007 09:58:56 -0700
Subject: [PATCH] Not finding an issuer shouldn't cause chain creation to fail
---
 dlls/crypt32/chain.c       |    4 ++--
 dlls/crypt32/tests/chain.c |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/crypt32/chain.c b/dlls/crypt32/chain.c
index 5546886..c6b197a 100644
--- a/dlls/crypt32/chain.c
+++ b/dlls/crypt32/chain.c
@@ -544,8 +544,8 @@ static BOOL CRYPT_BuildSimpleChain(HCERT
             }
             else
             {
-                TRACE("Couldn't find issuer, aborting chain creation\n");
-                ret = FALSE;
+                TRACE("Couldn't find issuer, halting chain creation\n");
+                break;
             }
         }
         if (ret)
diff --git a/dlls/crypt32/tests/chain.c b/dlls/crypt32/tests/chain.c
index 93bbe2c..83627e0 100644
--- a/dlls/crypt32/tests/chain.c
+++ b/dlls/crypt32/tests/chain.c
@@ -1583,7 +1583,7 @@ static ChainCheck chainCheckNoStore[] = 
      { CERT_TRUST_INVALID_BASIC_CONSTRAINTS | CERT_TRUST_IS_UNTRUSTED_ROOT |
        CERT_TRUST_IS_NOT_TIME_VALID, 0 },
      1, simpleStatus8NoStore },
-   TODO_CHAIN | TODO_ERROR | TODO_INFO },
+   TODO_INFO },
 };
 
 /* Wednesday, Oct 1, 2007 */
-- 
1.4.1


More information about the wine-patches mailing list