fixed nasty bug causing crashes when syncing the keyring from disc

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5501 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2012-09-01 20:02:39 +00:00
parent adfb4ab225
commit 64500289b6

View File

@ -1224,8 +1224,9 @@ bool PGPHandler::mergeKeySignatures(ops_keydata_t *dst,const ops_keydata_t *src)
{
uint8_t tag ;
uint32_t length ;
unsigned char *tmp_data = src->packets[i].raw ; // put it in a tmp variable because read_packetHeader() will modify it!!
PGPKeyParser::read_packetHeader(src->packets[i].raw,tag,length) ;
PGPKeyParser::read_packetHeader(tmp_data,tag,length) ;
if(tag == PGPKeyParser::PGP_PACKET_TAG_SIGNATURE)
to_add.insert(src->packets[i]) ;