Skip to content
Permalink
Browse files

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.
  • Loading branch information...
hacst committed Oct 28, 2015
1 parent 12cb827 commit 4795ae57bc3171c1e1d9bd0be46c840af67f8dae
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit 4795ae5

Please sign in to comment.
You can’t perform that action at this time.