Commit e37a6925 authored by André Klitzing's avatar André Klitzing Committed by Jani Heikkinen
Browse files

Fix memcpy with incorrect destination


Variable dsa is assigned in this block with q_DSA_new instead of rsa.
So this should be the destination of memcpy.

Change-Id: Id5a41d99f1606bf525ad5f819bbc06bb1235bf5b
Reviewed-by: default avatarRichard J. Moore <rich@kde.org>
Showing with 1 addition and 1 deletion
...@@ -95,7 +95,7 @@ bool QSslKeyPrivate::fromEVP_PKEY(EVP_PKEY *pkey) ...@@ -95,7 +95,7 @@ bool QSslKeyPrivate::fromEVP_PKEY(EVP_PKEY *pkey)
type = QSsl::PrivateKey; type = QSsl::PrivateKey;
dsa = q_DSA_new(); dsa = q_DSA_new();
memcpy(rsa, q_EVP_PKEY_get1_DSA(pkey), sizeof(DSA)); memcpy(dsa, q_EVP_PKEY_get1_DSA(pkey), sizeof(DSA));
return true; return true;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment