OpenSSL ssl_store_cert(): Fix a format specifier
authorFabian Keil <fk@fabiankeil.de>
Tue, 9 Feb 2021 15:13:03 +0000 (16:13 +0100)
committerFabian Keil <fk@fabiankeil.de>
Sun, 21 Feb 2021 15:09:20 +0000 (16:09 +0100)
openssl.c

index 8239e33..824b0d7 100644 (file)
--- a/openssl.c
+++ b/openssl.c
@@ -656,7 +656,7 @@ static int ssl_store_cert(struct client_state *csp, X509* crt)
    len = BIO_get_mem_data(bio, &bio_mem_data);
    if (len <= 0)
    {
-      log_error(LOG_LEVEL_ERROR, "BIO_get_mem_data() returned %d "
+      log_error(LOG_LEVEL_ERROR, "BIO_get_mem_data() returned %ld "
          "while gathering certificate information", len);
       ret = -1;
       goto exit;