aboutsummaryrefslogtreecommitdiff
path: root/crypto/tls-cipher-suites.c
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2020-08-26 13:10:05 -0400
committerEduardo Habkost <ehabkost@redhat.com>2020-09-02 07:29:25 -0400
commita7c893a1c4df756fdd14413f42d2732150b3e089 (patch)
treebc52a3e91ab20931a971b94885f95ff8579d6b33 /crypto/tls-cipher-suites.c
parentedf632ee66f957dbd410e7a55e3bdd02bca9d112 (diff)
downloadqemu-a7c893a1c4df756fdd14413f42d2732150b3e089.zip
qemu-a7c893a1c4df756fdd14413f42d2732150b3e089.tar.gz
qemu-a7c893a1c4df756fdd14413f42d2732150b3e089.tar.bz2
tls-cipher-suites: Correct instance_size
We do have a QCryptoTLSCipherSuites struct. It must be used when setting instance_size of the QOM type. Luckily this never caused problems because the QCryptoTLSCipherSuites struct has only a parent_obj field and nothing else. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20200826171005.4055015-5-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'crypto/tls-cipher-suites.c')
-rw-r--r--crypto/tls-cipher-suites.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/tls-cipher-suites.c b/crypto/tls-cipher-suites.c
index 0d305b6..55fb5f7 100644
--- a/crypto/tls-cipher-suites.c
+++ b/crypto/tls-cipher-suites.c
@@ -108,7 +108,7 @@ static void qcrypto_tls_cipher_suites_class_init(ObjectClass *oc, void *data)
static const TypeInfo qcrypto_tls_cipher_suites_info = {
.parent = TYPE_QCRYPTO_TLS_CREDS,
.name = TYPE_QCRYPTO_TLS_CIPHER_SUITES,
- .instance_size = sizeof(QCryptoTLSCreds),
+ .instance_size = sizeof(QCryptoTLSCipherSuites),
.class_size = sizeof(QCryptoTLSCredsClass),
.class_init = qcrypto_tls_cipher_suites_class_init,
.interfaces = (InterfaceInfo[]) {