From 64500289b6b669140741665f201bcc60de11edee Mon Sep 17 00:00:00 2001 From: csoler Date: Sat, 1 Sep 2012 20:02:39 +0000 Subject: [PATCH] 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 --- libretroshare/src/pgp/pgphandler.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/pgp/pgphandler.cc b/libretroshare/src/pgp/pgphandler.cc index 15d70e790..04de9aaab 100644 --- a/libretroshare/src/pgp/pgphandler.cc +++ b/libretroshare/src/pgp/pgphandler.cc @@ -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]) ;