File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ class CryptKeyCallback : public VersionedIface<ICryptKeyCallbackImpl<CryptKeyCal
195
195
{
196
196
public:
197
197
explicit CryptKeyCallback (rem_port* prt)
198
- : port(prt), networkCallback(prt), keyHolder( NULL ), keyCallback( NULL )
198
+ : port(prt), networkCallback(prt)
199
199
{ }
200
200
201
201
~CryptKeyCallback ()
@@ -225,7 +225,7 @@ class CryptKeyCallback : public VersionedIface<ICryptKeyCallbackImpl<CryptKeyCal
225
225
226
226
void loadClientKey ()
227
227
{
228
- if (keyCallback )
228
+ if (clientKeyChecked )
229
229
return ;
230
230
231
231
Reference r (*port);
@@ -257,6 +257,8 @@ class CryptKeyCallback : public VersionedIface<ICryptKeyCallbackImpl<CryptKeyCal
257
257
check (&st);
258
258
}
259
259
}
260
+
261
+ clientKeyChecked = true ;
260
262
}
261
263
262
264
void wakeup (unsigned int length, const void * data)
@@ -309,8 +311,9 @@ class CryptKeyCallback : public VersionedIface<ICryptKeyCallbackImpl<CryptKeyCal
309
311
private:
310
312
rem_port* port;
311
313
NetworkCallback networkCallback;
312
- IKeyHolderPlugin* keyHolder;
313
- ICryptKeyCallback* keyCallback;
314
+ IKeyHolderPlugin* keyHolder = nullptr ;
315
+ ICryptKeyCallback* keyCallback = nullptr ;
316
+ bool clientKeyChecked = false ;
314
317
};
315
318
316
319
class ServerCallback : public ServerCallbackBase , public GlobalStorage
You can’t perform that action at this time.
0 commit comments