diff options
author | Stefan Hacker <dd0t@users.sourceforge.net> | 2015-10-28 23:49:54 +0300 |
---|---|---|
committer | Stefan Hacker <dd0t@users.sourceforge.net> | 2015-10-28 23:49:54 +0300 |
commit | 4795ae57bc3171c1e1d9bd0be46c840af67f8dae (patch) | |
tree | 74770ed8663626cc5e9e48e16f574b6a394aceec /src/murmur/Cert.cpp | |
parent | 12cb8272cf65e06912f78524808009288d7d4e34 (diff) |
Fix qFatal message generation in Diffie Hellmann error path
Tried to pass a QString as an argument to a variadic C-Style
function (qFatal) which would have crashed and burned at
runtime.
Diffstat (limited to 'src/murmur/Cert.cpp')
-rw-r--r-- | src/murmur/Cert.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/murmur/Cert.cpp b/src/murmur/Cert.cpp index 49e49afc5..f9abddb69 100644 --- a/src/murmur/Cert.cpp +++ b/src/murmur/Cert.cpp @@ -253,7 +253,7 @@ void Server::initializeCert() { QByteArray pemdh(pem, len); QSslDiffieHellmanParameters qdhp(pemdh); if (!qdhp.isValid()) { - qFatal("QSslDiffieHellmanParameters: unable to import generated Diffie-HellmanParameters: %s", qdhp.errorString()); + qFatal("QSslDiffieHellmanParameters: unable to import generated Diffie-HellmanParameters: %s", qdhp.errorString().toStdString().c_str()); } qsdhpDHParams = qdhp; |