From 465420c59c1f58a339bee0e48dff47578b9e391b Mon Sep 17 00:00:00 2001 From: csoler Date: Fri, 31 May 2013 08:13:16 +0000 Subject: [PATCH] fixed update of time_stamps for keys from disk git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6391 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/pgp/pgphandler.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/pgp/pgphandler.cc b/libretroshare/src/pgp/pgphandler.cc index a9ec25f4f..f530a5396 100644 --- a/libretroshare/src/pgp/pgphandler.cc +++ b/libretroshare/src/pgp/pgphandler.cc @@ -1369,7 +1369,9 @@ void PGPHandler::locked_readPrivateTrustDatabase() ++n_packets ; it->second._trustLvl = trustpacket.trust_level ; - it->second._time_stamp = trustpacket.time_stamp ; + + if(trustpacket.time_stamp > it->second._time_stamp) // only update time stamp if the loaded time stamp is newer + it->second._time_stamp = trustpacket.time_stamp ; } fclose(fdb) ;