Skip to content

Commit 112b7f9

Browse files
PS-9609 postfix: audit_log_filter can't be installed when server is using component_keyring_kmip
https://perconadev.atlassian.net/browse/PS-9609 Fixed problem with passing a 'std::string' via va_args into printf-like function that expects 'const char *`. error: cannot pass object of non-trivial type 'basic_string<char, char_traits<char>, Malloc_allocator<char>>' through variadic method; call will abort at runtime [-Wnon-pod-varargs]
1 parent 24b80f0 commit 112b7f9

File tree

1 file changed

+4
-2
lines changed
  • components/keyrings/keyring_kmip/backend

1 file changed

+4
-2
lines changed

components/keyrings/keyring_kmip/backend/backend.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,10 @@ bool Keyring_kmip_backend::store(const Metadata &metadata,
171171
return true;
172172
}
173173
} else { // we only support AES keys and SECRET type (passwords)
174-
LogComponentErr(ERROR_LEVEL, ER_LOG_PRINTF_MSG,
175-
"Unsupported KMIP entity" + data.type() + ", can not store");
174+
std::string err_msg = "Unsupported KMIP entity";
175+
err_msg += data.type();
176+
err_msg += ", can not store";
177+
LogComponentErr(ERROR_LEVEL, ER_LOG_PRINTF_MSG, err_msg.c_str());
176178
return true;
177179
}
178180
if (!ctx.op_activate(id)) {

0 commit comments

Comments
 (0)