aboutsummaryrefslogtreecommitdiff
path: root/src/pt
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-09-30 22:10:54 +0000
committerChristian Grothoff <christian@grothoff.org>2013-09-30 22:10:54 +0000
commita0feef53d9f3a04c65a870e2a2b9f8b850bedc0a (patch)
treea9a0a6c0c73c7e2fb6f9c9f9201b16bf94a61839 /src/pt
parentdcc352c9dd39b51cb2136ff50eb5da843b5abe3a (diff)
downloadgnunet-a0feef53d9f3a04c65a870e2a2b9f8b850bedc0a.tar.gz
gnunet-a0feef53d9f3a04c65a870e2a2b9f8b850bedc0a.zip
-fixing build issues in pt/exit/vpn related to #3047
Diffstat (limited to 'src/pt')
-rw-r--r--src/pt/gnunet-daemon-pt.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/pt/gnunet-daemon-pt.c b/src/pt/gnunet-daemon-pt.c
index eee851faf..1d9abf81a 100644
--- a/src/pt/gnunet-daemon-pt.c
+++ b/src/pt/gnunet-daemon-pt.c
@@ -1193,7 +1193,6 @@ handle_dht_result (void *cls,
1193 size_t size, const void *data) 1193 size_t size, const void *data)
1194{ 1194{
1195 const struct GNUNET_DNS_Advertisement *ad; 1195 const struct GNUNET_DNS_Advertisement *ad;
1196 struct GNUNET_PeerIdentity pid;
1197 struct MeshExit *exit; 1196 struct MeshExit *exit;
1198 1197
1199 if (sizeof (struct GNUNET_DNS_Advertisement) != size) 1198 if (sizeof (struct GNUNET_DNS_Advertisement) != size)
@@ -1202,18 +1201,15 @@ handle_dht_result (void *cls,
1202 return; 1201 return;
1203 } 1202 }
1204 ad = data; 1203 ad = data;
1205 GNUNET_CRYPTO_hash (&ad->peer,
1206 sizeof (struct GNUNET_CRYPTO_EccPublicSignKey),
1207 &pid.hashPubKey);
1208 for (exit = exit_head; NULL != exit; exit = exit->next) 1204 for (exit = exit_head; NULL != exit; exit = exit->next)
1209 if (0 == memcmp (&pid, 1205 if (0 == memcmp (&ad->peer,
1210 &exit->peer, 1206 &exit->peer,
1211 sizeof (struct GNUNET_PeerIdentity))) 1207 sizeof (struct GNUNET_PeerIdentity)))
1212 break; 1208 break;
1213 if (NULL == exit) 1209 if (NULL == exit)
1214 { 1210 {
1215 exit = GNUNET_new (struct MeshExit); 1211 exit = GNUNET_new (struct MeshExit);
1216 exit->peer = pid; 1212 exit->peer = ad->peer;
1217 /* tunnel is closed, so insert at the end */ 1213 /* tunnel is closed, so insert at the end */
1218 GNUNET_CONTAINER_DLL_insert_tail (exit_head, 1214 GNUNET_CONTAINER_DLL_insert_tail (exit_head,
1219 exit_tail, 1215 exit_tail,