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
parent
41f8d1f393
commit
e37a69252e
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue