gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r9763 - GNUnet/src/applications/identity


From: gnunet
Subject: [GNUnet-SVN] r9763 - GNUnet/src/applications/identity
Date: Tue, 15 Dec 2009 14:07:26 +0100

Author: grothoff
Date: 2009-12-15 14:07:26 +0100 (Tue, 15 Dec 2009)
New Revision: 9763

Modified:
   GNUnet/src/applications/identity/identity.c
Log:
fixing misreported trust values

Modified: GNUnet/src/applications/identity/identity.c
===================================================================
--- GNUnet/src/applications/identity/identity.c 2009-12-15 11:51:40 UTC (rev 
9762)
+++ GNUnet/src/applications/identity/identity.c 2009-12-15 13:07:26 UTC (rev 
9763)
@@ -1305,6 +1305,7 @@
   unsigned int len;
   unsigned int bpm;
   GNUNET_CronTime last;
+  HostEntry *he;
 
   if (confirmed == GNUNET_NO)
     return GNUNET_OK;
@@ -1340,7 +1341,8 @@
   reply->header.type = htons (GNUNET_CS_PROTO_IDENTITY_INFO);
   reply->peer = *identity;
   reply->last_message = GNUNET_htonll (last);
-  reply->trust = htonl (change_host_trust (identity, 0));
+  he = lookup_host_entry (identity);
+  reply->trust = htonl (he->trust & TRUST_ACTUAL_MASK);
   reply->bpm = htonl (bpm);
   memcpy (&reply[1], address, len);
   GNUNET_free_non_null (address);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]