summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Heimrich <karsten.heimrich@qt.io>2019-04-04 12:41:13 +0200
committerKarsten Heimrich <karsten.heimrich@qt.io>2019-04-05 12:20:59 +0000
commitc9023f6adb7c07c6958c7daae1cbcf7b7613af23 (patch)
tree4eb5eb3f2ef81f05f501b05d9ed68c1b6e069307
parent5573a7e1f8654ca274f0dd8cbb81d384df6317d3 (diff)
Fix warning SSL warning if OpenSSL was not loadedv5.13.0-beta2
Fixes the following superfluous warning: qt.network.ssl: QSslSocket: cannot call unresolved function EVP_PKEY_free Change-Id: I86d2b36f28778d39bf4dd85dbec1ab09100bbb3f Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
-rw-r--r--src/knx/ssl/qknxsecurekey.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/knx/ssl/qknxsecurekey.cpp b/src/knx/ssl/qknxsecurekey.cpp
index 953d126..5aadbf9 100644
--- a/src/knx/ssl/qknxsecurekey.cpp
+++ b/src/knx/ssl/qknxsecurekey.cpp
@@ -46,7 +46,8 @@ public:
~QKnxSecureKeyData()
{
#if QT_CONFIG(opensslv11)
- q_EVP_PKEY_free(m_evpPKey);
+ if (m_evpPKey)
+ q_EVP_PKEY_free(m_evpPKey);
#endif
}