From d1b9d2c2f970be20ade361f564432e67c23244fc Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Mon, 18 Sep 2023 09:21:31 +1200 Subject: [PATCH] hx509: Add missing format specifier Found by Coverity (Samba CID 1544604). Signed-off-by: Joseph Sutton --- lib/hx509/ks_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hx509/ks_file.c b/lib/hx509/ks_file.c index 6d8c77bd2..35796adb7 100644 --- a/lib/hx509/ks_file.c +++ b/lib/hx509/ks_file.c @@ -197,7 +197,7 @@ parse_pem_private_key(hx509_context context, const char *fn, int flags, if (strcmp(enc, "4,ENCRYPTED") != 0) { hx509_set_error_string(context, 0, HX509_PARSING_KEY_FAILED, "Private key encrypted in unknown method %s " - "in file", + "in file %s", enc, fn); hx509_clear_error_string(context); return HX509_PARSING_KEY_FAILED;