Blame SOURCES/esc-1.1.2-fix2.patch

9b58a7
diff -up ./esc/src/lib/coolkey/CoolKey.cpp.fix2 ./esc/src/lib/coolkey/CoolKey.cpp
9b58a7
--- ./esc/src/lib/coolkey/CoolKey.cpp.fix2	2018-10-11 18:34:34.622987227 -0700
9b58a7
+++ ./esc/src/lib/coolkey/CoolKey.cpp	2018-10-11 18:36:11.918476971 -0700
9b58a7
@@ -492,13 +492,11 @@ HRESULT CoolKeyGetCUIDDirectly(char *aBu
9b58a7
     }
9b58a7
 
9b58a7
     cardCtxt = CKYCardContext_Create(SCARD_SCOPE_USER);
9b58a7
-    assert(cardCtxt);
9b58a7
     if (!cardCtxt) {
9b58a7
          goto done;
9b58a7
     }
9b58a7
 
9b58a7
     conn = CKYCardConnection_Create(cardCtxt);
9b58a7
-    assert(conn);
9b58a7
     if (!conn) {
9b58a7
         goto done;
9b58a7
     }
9b58a7
@@ -559,13 +557,11 @@ HRESULT CoolKeyGetATRDirectly(char *aBuf
9b58a7
     }
9b58a7
 
9b58a7
     cardCtxt = CKYCardContext_Create(SCARD_SCOPE_USER);
9b58a7
-    assert(cardCtxt);
9b58a7
     if (!cardCtxt) {
9b58a7
          goto done;
9b58a7
     }
9b58a7
 
9b58a7
     conn = CKYCardConnection_Create(cardCtxt);
9b58a7
-    assert(conn);
9b58a7
     if (!conn) {
9b58a7
         goto done;
9b58a7
     }
9b58a7
@@ -629,13 +625,11 @@ HRESULT CoolKeyGetLifeCycleDirectly(CKYB
9b58a7
     }
9b58a7
 
9b58a7
     cardCtxt = CKYCardContext_Create(SCARD_SCOPE_USER);
9b58a7
-    assert(cardCtxt);
9b58a7
     if (!cardCtxt) {
9b58a7
          goto done;
9b58a7
     }
9b58a7
 
9b58a7
     conn = CKYCardConnection_Create(cardCtxt);
9b58a7
-    assert(conn);
9b58a7
     if (!conn) {
9b58a7
         goto done;
9b58a7
     }
9b58a7
@@ -691,13 +685,11 @@ HRESULT CoolKeyGetCPLCDataDirectly(CKYAp
9b58a7
     }
9b58a7
 
9b58a7
     cardCtxt = CKYCardContext_Create(SCARD_SCOPE_USER);
9b58a7
-    assert(cardCtxt);
9b58a7
     if (!cardCtxt) {
9b58a7
          goto done;
9b58a7
     }
9b58a7
 
9b58a7
     conn = CKYCardConnection_Create(cardCtxt);
9b58a7
-    assert(conn);
9b58a7
     if (!conn) {
9b58a7
         goto done;
9b58a7
     }
9b58a7
@@ -752,19 +744,16 @@ static void PR_CALLBACK BlinkTimer(void
9b58a7
         const char *readerName = NULL;
9b58a7
   
9b58a7
         CKYCardContext *cardCtxt = CKYCardContext_Create(SCARD_SCOPE_USER);
9b58a7
-        assert(cardCtxt);
9b58a7
         if (!cardCtxt) {
9b58a7
             goto done;
9b58a7
         }
9b58a7
   
9b58a7
         conn = CKYCardConnection_Create(cardCtxt);
9b58a7
-        assert(conn);
9b58a7
         if (!conn) {
9b58a7
             goto done;
9b58a7
         }
9b58a7
 
9b58a7
         readerName = GetReaderNameForKeyID(&params->mKey);
9b58a7
-        assert(readerName);
9b58a7
         if (!readerName) {
9b58a7
             goto done;
9b58a7
         }
9b58a7
@@ -1336,7 +1325,6 @@ HRESULT CoolKeyGetIssuerInfo(const CoolK
9b58a7
 
9b58a7
     CKYCardContext *cardCtxt = CKYCardContext_Create(SCARD_SCOPE_USER);
9b58a7
 
9b58a7
-    assert(cardCtxt);
9b58a7
     if (!cardCtxt) {
9b58a7
         CoolKeyLogMsg( PR_LOG_ERROR, "%s Attempting to get key issuer info. Can't create Card Context !.\n",GetTStamp(tBuff,56));
9b58a7
         result = E_FAIL;
9b58a7
@@ -1344,7 +1332,6 @@ HRESULT CoolKeyGetIssuerInfo(const CoolK
9b58a7
     }
9b58a7
 
9b58a7
     conn = CKYCardConnection_Create(cardCtxt);
9b58a7
-    assert(conn);
9b58a7
     if (!conn) {
9b58a7
         CoolKeyLogMsg( PR_LOG_ERROR, "%s Attempting to get key issuer info.  Can't create Card Connection!\n",GetTStamp(tBuff,56));
9b58a7
         result = E_FAIL;
9b58a7
@@ -1352,7 +1339,6 @@ HRESULT CoolKeyGetIssuerInfo(const CoolK
9b58a7
     }
9b58a7
 
9b58a7
     readerName = GetReaderNameForKeyID(aKey);
9b58a7
-    assert(readerName);
9b58a7
     if (!readerName) {
9b58a7
         CoolKeyLogMsg( PR_LOG_ERROR, "%s Attempting to get key issuer info.  Can't get reader name!\n",GetTStamp(tBuff,56));
9b58a7
         result = E_FAIL;