From 9a788df3d3c85fdf23d914740714a36fcc80e835 Mon Sep 17 00:00:00 2001 From: Mate Barany Date: Tue, 25 Jun 2024 16:32:31 +0200 Subject: [PATCH] Disable copy and move operations in QSslContext The class has a custom destructor, we should handle the other special member functions as well. Found by an Axivion scan. Pick-to: 6.5 Task-number: QTBUG-125026 Change-Id: I172aeb02d81a0f66ab724892d9f938a12f371ffa Reviewed-by: Timur Pocheptsov (cherry picked from commit d8e86a93303244286881d732aa570cb551b230e9) Reviewed-by: Qt Cherry-pick Bot --- src/plugins/tls/openssl/qsslcontext_openssl_p.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/tls/openssl/qsslcontext_openssl_p.h b/src/plugins/tls/openssl/qsslcontext_openssl_p.h index 3bd39baf0cd..64ff45d064b 100644 --- a/src/plugins/tls/openssl/qsslcontext_openssl_p.h +++ b/src/plugins/tls/openssl/qsslcontext_openssl_p.h @@ -30,6 +30,7 @@ QT_BEGIN_NAMESPACE class QSslContext { public: + Q_DISABLE_COPY_MOVE(QSslContext) ~QSslContext();