Fix typo in a test condition code
diff --git a/library/x509_crt.c b/library/x509_crt.c
index 25aaff3..d0d1cdb 100644
--- a/library/x509_crt.c
+++ b/library/x509_crt.c
@@ -2180,7 +2180,7 @@
     }
 
     /* extra precaution against mistakes in the caller */
-    if( parent == NULL )
+    if( *parent == NULL )
     {
         *parent_is_trusted = 0;
         *signature_is_good = 0;