- Corrected behaviour

diff --git a/library/debug.c b/library/debug.c
index 6471706..b3855db 100644
--- a/library/debug.c
+++ b/library/debug.c
@@ -184,7 +184,7 @@
     prefix[maxlen] = '\0';
     maxlen = sizeof( str ) - 1;
 
-    while( crt != NULL && crt->version != 0 )
+    while( crt != NULL )
     {
         char buf[1024];
         x509parse_cert_info( buf, sizeof( buf ) - 1, prefix, crt );