[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r9847 - GNUnet/src/applications/identity
From: |
gnunet |
Subject: |
[GNUnet-SVN] r9847 - GNUnet/src/applications/identity |
Date: |
Mon, 21 Dec 2009 12:54:23 +0100 |
Author: grothoff
Date: 2009-12-21 12:54:23 +0100 (Mon, 21 Dec 2009)
New Revision: 9847
Modified:
GNUnet/src/applications/identity/identity.c
Log:
handle NULL, CID 209
Modified: GNUnet/src/applications/identity/identity.c
===================================================================
--- GNUnet/src/applications/identity/identity.c 2009-12-21 11:51:54 UTC (rev
9846)
+++ GNUnet/src/applications/identity/identity.c 2009-12-21 11:54:23 UTC (rev
9847)
@@ -1342,7 +1342,10 @@
reply->peer = *identity;
reply->last_message = GNUNET_htonll (last);
he = lookup_host_entry (identity);
- reply->trust = htonl (he->trust & TRUST_ACTUAL_MASK);
+ if (he != NULL)
+ reply->trust = htonl (he->trust & TRUST_ACTUAL_MASK);
+ else
+ reply->trust = htonl (0);
reply->bpm = htonl (bpm);
memcpy (&reply[1], address, len);
GNUNET_free_non_null (address);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r9847 - GNUnet/src/applications/identity,
gnunet <=