diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-07-12 22:11:16 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-07-12 22:11:16 +0000 |
commit | 434bd08c383c1128e4c95d84d8e546ced6dfb629 (patch) | |
tree | c07689baaa32aa123e3bcc5939c74bde1f2a9b06 /src/topology | |
parent | 0764da28f2a3003c208703245b2247432855fc90 (diff) | |
download | gnunet-434bd08c383c1128e4c95d84d8e546ced6dfb629.tar.gz gnunet-434bd08c383c1128e4c95d84d8e546ced6dfb629.zip |
transport fixes, hello API extension
Diffstat (limited to 'src/topology')
-rw-r--r-- | src/topology/gnunet-daemon-topology.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/topology/gnunet-daemon-topology.c b/src/topology/gnunet-daemon-topology.c index 20d541eb2..73fb84981 100644 --- a/src/topology/gnunet-daemon-topology.c +++ b/src/topology/gnunet-daemon-topology.c | |||
@@ -497,7 +497,6 @@ static void | |||
497 | consider_for_advertising (const struct GNUNET_HELLO_Message *hello) | 497 | consider_for_advertising (const struct GNUNET_HELLO_Message *hello) |
498 | { | 498 | { |
499 | int have_address; | 499 | int have_address; |
500 | struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pkey; | ||
501 | struct GNUNET_PeerIdentity pid; | 500 | struct GNUNET_PeerIdentity pid; |
502 | struct HelloList *pos; | 501 | struct HelloList *pos; |
503 | uint16_t size; | 502 | uint16_t size; |
@@ -509,8 +508,7 @@ consider_for_advertising (const struct GNUNET_HELLO_Message *hello) | |||
509 | &have_address); | 508 | &have_address); |
510 | if (GNUNET_NO == have_address) | 509 | if (GNUNET_NO == have_address) |
511 | return; /* no point in advertising this one... */ | 510 | return; /* no point in advertising this one... */ |
512 | GNUNET_HELLO_get_key (hello, &pkey); | 511 | GNUNET_HELLO_get_id (hello, &pid); |
513 | GNUNET_CRYPTO_hash (&pkey, sizeof (pkey), &pid.hashPubKey); | ||
514 | pos = hellos; | 512 | pos = hellos; |
515 | while (pos != NULL) | 513 | while (pos != NULL) |
516 | { | 514 | { |