diff --git a/src/Storages/NATS/NATSConnection.cpp b/src/Storages/NATS/NATSConnection.cpp index f5e45966d1f..d8ce05160df 100644 --- a/src/Storages/NATS/NATSConnection.cpp +++ b/src/Storages/NATS/NATSConnection.cpp @@ -100,7 +100,7 @@ void NATSConnectionManager::connectImpl() if (!configuration.ca_file.empty()) natsOptions_LoadCATrustedCertificates(options, configuration.ca_file.c_str()); if (!configuration.client_cert_file.empty() && !configuration.client_key_file.empty()) - natsOptions_LoadCertificatesChain(options, configuration.client_cert_file.c_str(), configuration.client_key_file.c_str()); + natsOptions_LoadCertificatesChain(options, configuration.client_cert_file.c_str(), configuration.client_key_file.c_str()); } if (skip_verification) {