From 483c74aaab7c20d82a48621f1dd8b300292d3404 Mon Sep 17 00:00:00 2001 From: weidai Date: Tue, 29 Jul 2003 01:18:33 +0000 Subject: fix potential threading problem with initialization of static objects git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@118 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- dh.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dh.h') diff --git a/dh.h b/dh.h index 31fa798..641d508 100644 --- a/dh.h +++ b/dh.h @@ -78,7 +78,7 @@ public: private: const DL_KeyAgreementAlgorithm & GetKeyAgreementAlgorithm() const - {static KeyAgreementAlgorithm a; return a;} + {return Singleton().Ref();} DL_GroupParameters & AccessAbstractGroupParameters() {return m_groupParameters;} -- cgit v1.2.1