Output prog name within error message
[openssl.git] / apps / s_client.c
index d7a3a80e2b409b2fc4990c36c4d5f7dc878a66b6..c86d36c5b6f26699fbc01aaff7253a06cbe231fa 100644 (file)
@@ -1487,17 +1487,17 @@ int s_client_main(int argc, char **argv)
     }
 #endif
     if (max_send_fragment > SSL3_RT_MAX_PLAIN_LENGTH) {
     }
 #endif
     if (max_send_fragment > SSL3_RT_MAX_PLAIN_LENGTH) {
-        BIO_printf(bio_err, "Bad max send fragment size\n");
+        BIO_printf(bio_err, "%s: Bad max send fragment size\n", prog);
         goto end;
     }
 
     if (split_send_fragment > SSL3_RT_MAX_PLAIN_LENGTH) {
         goto end;
     }
 
     if (split_send_fragment > SSL3_RT_MAX_PLAIN_LENGTH) {
-        BIO_printf(bio_err, "Bad split send fragment size\n");
+        BIO_printf(bio_err, "%s: Bad split send fragment size\n", prog);
         goto end;
     }
 
     if (max_pipelines > SSL_MAX_PIPELINES) {
         goto end;
     }
 
     if (max_pipelines > SSL_MAX_PIPELINES) {
-        BIO_printf(bio_err, "Bad max pipelines value\n");
+        BIO_printf(bio_err, "%s: Bad max pipelines value\n", prog);
         goto end;
     }
 
         goto end;
     }