[openssl] master update

bernd.edlinger at hotmail.de bernd.edlinger at hotmail.de
Thu Apr 2 07:20:37 UTC 2020


The branch master has been updated
       via  b5f7aa5ce72023bdfa5ad6342ab609ee03dcdf1a (commit)
      from  ccb8f0c87eb28d55a6607504f2fbf1be94836c49 (commit)


- Log -----------------------------------------------------------------
commit b5f7aa5ce72023bdfa5ad6342ab609ee03dcdf1a
Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
Date:   Wed Apr 1 06:00:27 2020 +0200

    Fix a printf format error in cmp_client.c
    
    The value is of type uint64 but the format
    %ld is not suitable for that, need to use %jd.
    
    [extended tests]
    
    Reviewed-by: Paul Dale <paul.dale at oracle.com>
    (Merged from https://github.com/openssl/openssl/pull/11454)

-----------------------------------------------------------------------

Summary of changes:
 crypto/cmp/cmp_client.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/cmp/cmp_client.c b/crypto/cmp/cmp_client.c
index 394358c5e3..eedabc59d2 100644
--- a/crypto/cmp/cmp_client.c
+++ b/crypto/cmp/cmp_client.c
@@ -284,7 +284,7 @@ static int poll_for_response(OSSL_CMP_CTX *ctx, int sleep, int rid,
             if (check_after < 0 || (uint64_t)check_after
                 > (sleep ? ULONG_MAX / 1000 : INT_MAX)) {
                 CMPerr(0, CMP_R_CHECKAFTER_OUT_OF_RANGE);
-                if (BIO_snprintf(str, OSSL_CMP_PKISI_BUFLEN, "value = %ld",
+                if (BIO_snprintf(str, OSSL_CMP_PKISI_BUFLEN, "value = %jd",
                                  check_after) >= 0)
                     ERR_add_error_data(1, str);
                 goto err;


More information about the openssl-commits mailing list