aboutsummaryrefslogtreecommitdiff
path: root/src/dv
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-07-15 11:49:01 +0000
committerChristian Grothoff <christian@grothoff.org>2011-07-15 11:49:01 +0000
commitf4b947f76c27bfbc6a15bedb114ce89c1060694c (patch)
tree1af0ba9f180eee6113d252f61690919636412bc7 /src/dv
parent7f7b211b9f52bb2276b2d344d1bae68e01eaf0ed (diff)
downloadgnunet-f4b947f76c27bfbc6a15bedb114ce89c1060694c.tar.gz
gnunet-f4b947f76c27bfbc6a15bedb114ce89c1060694c.zip
fix
Diffstat (limited to 'src/dv')
-rw-r--r--src/dv/test_transport_api_dv.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/dv/test_transport_api_dv.c b/src/dv/test_transport_api_dv.c
index 786376eb7..8b42c4311 100644
--- a/src/dv/test_transport_api_dv.c
+++ b/src/dv/test_transport_api_dv.c
@@ -879,7 +879,7 @@ static void all_connect_handler (void *cls,
879{ 879{
880 struct GNUNET_TESTING_Daemon *d = cls; 880 struct GNUNET_TESTING_Daemon *d = cls;
881 struct GNUNET_TESTING_Daemon *second_daemon; 881 struct GNUNET_TESTING_Daemon *second_daemon;
882 char *second_shortname = strdup(GNUNET_i2s(peer)); 882 char *second_shortname;
883#if !TEST_ALL 883#if !TEST_ALL
884 struct TestMessageContext *temp_context; 884 struct TestMessageContext *temp_context;
885#endif 885#endif
@@ -887,21 +887,23 @@ static void all_connect_handler (void *cls,
887 887
888 if (0 == memcmp(&d->id, peer, sizeof(struct GNUNET_PeerIdentity))) 888 if (0 == memcmp(&d->id, peer, sizeof(struct GNUNET_PeerIdentity)))
889 return; 889 return;
890 890 second_shortname = GNUNET_strdup (GNUNET_i2s(peer));
891 distance = get_atsi_distance(atsi); 891 distance = get_atsi_distance(atsi);
892 892
893#if VERBOSE 893#if VERBOSE
894 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "connected peer %s to peer %s, distance %u\n", 894 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
895 d->shortname, 895 "connected peer %s to peer %s, distance %u\n",
896 second_shortname, 896 d->shortname,
897 distance); 897 second_shortname,
898 distance);
898#endif 899#endif
899 900
900 second_daemon = GNUNET_CONTAINER_multihashmap_get(peer_daemon_hash, &peer->hashPubKey); 901 second_daemon = GNUNET_CONTAINER_multihashmap_get(peer_daemon_hash, &peer->hashPubKey);
901 902
902 if (second_daemon == NULL) 903 if (second_daemon == NULL)
903 { 904 {
904 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Couldn't find second peer!\n"); 905 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
906 "Couldn't find second peer!\n");
905 GNUNET_free(second_shortname); 907 GNUNET_free(second_shortname);
906 return; 908 return;
907 } 909 }