Style tweaks following review feedback
[openssl.git] / ssl / ssl_cert.c
index e5fa66df53baef36a4a1f15d66bd5fb74c4c4a96..9d359572a9c84af33e667c49d12aaaf3704d49b7 100644 (file)
@@ -769,7 +769,7 @@ int ssl_add_cert_chain(SSL *s, WPACKET *pkt, CERT_PKEY *cpk)
     STACK_OF(X509) *chain = NULL;
     X509_STORE *chain_store;
 
-    if (!cpk || !cpk->x509)
+    if (cpk == NULL || cpk->x509 == NULL)
         return 1;
 
     x = cpk->x509;