fixed sending part in encrypted msg items

This commit is contained in:
csoler 2016-02-14 19:42:21 -05:00
parent 71071595c8
commit 0513e71c68
4 changed files with 151 additions and 75 deletions

View file

@ -53,7 +53,7 @@ class GxsSecurity
class MultiEncryptionContext
{
public:
MultiEncryptionContext() { clear() ;}
MultiEncryptionContext() { ekl=NULL;ek=NULL;}
~MultiEncryptionContext() { clear() ;}
void clear()
@ -61,7 +61,9 @@ class GxsSecurity
for(uint32_t i=0;i<ids.size();++i)
free(ek[i]) ;
if(ekl)
free(ekl) ;
if(ek)
free(ek) ;
ekl = NULL ;