From f184e5a538caa9412fa3b0e99afe92473fbd6739 Mon Sep 17 00:00:00 2001
From: Vladimir Kravets <vova.kravets@gmail.com>
Date: Mon, 23 May 2011 17:17:43 +0300
Subject: [PATCH] Fix working with empty certificates in not zero slots.

---
 coolkey-1.1.0/src/coolkey/slot.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

--- a/src/coolkey/slot.cpp
+++ b/src/coolkey/slot.cpp
@@ -2192,7 +2192,7 @@
 	    handleConnectionError();
 	}
         
-        if(CKYBuffer_Size(cert) == 0) {
+        if(throwException && CKYBuffer_Size(cert) == 0) {
             handleConnectionError();
         }
 	return status;
