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: Richard J. Moore <rich@kde.org>
bb10
André Klitzing 2014-11-17 18:41:05 +01:00 committed by Jani Heikkinen
parent 41f8d1f393
commit e37a69252e
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ bool QSslKeyPrivate::fromEVP_PKEY(EVP_PKEY *pkey)
type = QSsl::PrivateKey;
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;
}