This commit is contained in:
jl777
2017-01-22 14:09:15 +02:00
parent a9aca4da0e
commit d65e157051
2 changed files with 2 additions and 2 deletions

View File

@@ -144,7 +144,7 @@ void komodo_kvupdate(uint8_t *opretbuf,int32_t opretlen,uint64_t value)
else if ( ptr == 0 )
{
ptr = (struct komodo_kv *)calloc(1,sizeof(*ptr));
ptr->pubkey = pubkey;
memcpy(&ptr->pubkey,&pubkey,sizeof(ptr->pubkey));
ptr->key = (uint8_t *)calloc(1,keylen);
ptr->keylen = keylen;
memcpy(ptr->key,key,keylen);