From d6e5786ec7c428206f38b42fc48ffb041350e22f Mon Sep 17 00:00:00 2001 From: J Harper Date: Wed, 4 May 2016 16:37:26 -0700 Subject: [PATCH] coverity analyzer fixes --- matrixssl/test/certValidate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/matrixssl/test/certValidate.c b/matrixssl/test/certValidate.c index 15ce451..bdd1461 100644 --- a/matrixssl/test/certValidate.c +++ b/matrixssl/test/certValidate.c @@ -203,7 +203,9 @@ int32 main(int32 argc, char **argv) psAssert(faildate == 0); flags = depth = 0; - printf(" Validate %s:%s rc %d\n", argv[2], cert->subject.commonName, rc); + if (cert) { + printf(" Validate %s:%s rc %d\n", argv[2], cert->subject.commonName, rc); + } for (cert = chain, i = 0; cert != NULL; cert = cert->next, i++) { printf(" [%d] authStatus=%d, authFailFlags=%u\n", i, cert->authStatus, cert->authFailFlags);