Small error fix.
[openssl.git] / crypto / threads / mttest.c
index 40c1cfc6c2b28c9f355842493d6ea57e195394ec..47faef53c4641313efe16038e1f7b3a04ea8a11a 100644 (file)
@@ -660,9 +660,10 @@ int MS_CALLBACK verify_callback(int ok, X509_STORE_CTX *ctx)
 
        if (verbose)
                {
 
        if (verbose)
                {
+               s=X509_NAME_oneline(X509_get_subject_name(ctx->current_cert),
+                                   buf,256);
                if (s != NULL)
                        {
                if (s != NULL)
                        {
-                       s=X509_NAME_oneline(X509_get_subject_name(ctx->current_cert),buf,256);
                        if (ok)
                                fprintf(stderr,"depth=%d %s\n",
                                        ctx->error_depth,buf);
                        if (ok)
                                fprintf(stderr,"depth=%d %s\n",
                                        ctx->error_depth,buf);