hx509: Add missing format specifier

Found by Coverity (Samba CID 1544604).

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
This commit is contained in:
Joseph Sutton
2023-09-18 09:21:31 +12:00
committed by Nico Williams
parent 7ee2ddd71a
commit d1b9d2c2f9

View File

@@ -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;