diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-11-04 21:01:22 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-11-04 21:01:22 +0000 |
commit | 0e4c7cdccfc4105f9c6e529cfa0e3722104b0ddf (patch) | |
tree | ac53b9088e75b7041e14e3455698a75da085b3d7 /src/transport | |
parent | b6d09b511fbd61d3b36fde4c28624bed321bf4a1 (diff) | |
download | gnunet-0e4c7cdccfc4105f9c6e529cfa0e3722104b0ddf.tar.gz gnunet-0e4c7cdccfc4105f9c6e529cfa0e3722104b0ddf.zip |
-misc bugfixes, travel hacking
Diffstat (limited to 'src/transport')
25 files changed, 6 insertions, 42 deletions
diff --git a/src/transport/gnunet-transport.c b/src/transport/gnunet-transport.c index 5978de6bb..18b1b9839 100644 --- a/src/transport/gnunet-transport.c +++ b/src/transport/gnunet-transport.c | |||
@@ -745,13 +745,9 @@ main (int argc, char *const *argv) | |||
745 | ("Direct access to transport service."), options, | 745 | ("Direct access to transport service."), options, |
746 | &run, NULL); | 746 | &run, NULL); |
747 | GNUNET_free ((void *) argv); | 747 | GNUNET_free ((void *) argv); |
748 | |||
749 | if (GNUNET_OK == res) | 748 | if (GNUNET_OK == res) |
750 | return ret; | 749 | return ret; |
751 | else | 750 | return 1; |
752 | return 1; | ||
753 | |||
754 | |||
755 | } | 751 | } |
756 | 752 | ||
757 | 753 | ||
diff --git a/src/transport/template_cfg_peer1.conf b/src/transport/template_cfg_peer1.conf index 05309d53c..8856418b3 100644 --- a/src/transport/template_cfg_peer1.conf +++ b/src/transport/template_cfg_peer1.conf | |||
@@ -39,11 +39,9 @@ UNIXPATH = /tmp/gnunet-p1-service-peerinfo.sock | |||
39 | [transport] | 39 | [transport] |
40 | #PREFIX = valgrind --leak-check=full | 40 | #PREFIX = valgrind --leak-check=full |
41 | PORT = 12001 | 41 | PORT = 12001 |
42 | #DEBUG = YES | ||
43 | UNIXPATH = /tmp/gnunet-p1-service-transport.sock | 42 | UNIXPATH = /tmp/gnunet-p1-service-transport.sock |
44 | 43 | ||
45 | [ats] | 44 | [ats] |
46 | #DEBUG = YES | ||
47 | WAN_QUOTA_IN = unlimited | 45 | WAN_QUOTA_IN = unlimited |
48 | WAN_QUOTA_OUT = unlimited | 46 | WAN_QUOTA_OUT = unlimited |
49 | PORT = 12006 | 47 | PORT = 12006 |
diff --git a/src/transport/template_cfg_peer2.conf b/src/transport/template_cfg_peer2.conf index 210ee51c5..54636ca6b 100644 --- a/src/transport/template_cfg_peer2.conf +++ b/src/transport/template_cfg_peer2.conf | |||
@@ -43,7 +43,6 @@ PORT = 12010 | |||
43 | UNIXPATH = /tmp/gnunet-p2-service-transport.sock | 43 | UNIXPATH = /tmp/gnunet-p2-service-transport.sock |
44 | 44 | ||
45 | [ats] | 45 | [ats] |
46 | #DEBUG = YES | ||
47 | WAN_QUOTA_IN = unlimited | 46 | WAN_QUOTA_IN = unlimited |
48 | WAN_QUOTA_OUT = unlimited | 47 | WAN_QUOTA_OUT = unlimited |
49 | PORT = 12016 | 48 | PORT = 12016 |
diff --git a/src/transport/test_transport_api_bidirectional_connect_peer1.conf b/src/transport/test_transport_api_bidirectional_connect_peer1.conf index 614d89d21..ba6afbe6e 100644 --- a/src/transport/test_transport_api_bidirectional_connect_peer1.conf +++ b/src/transport/test_transport_api_bidirectional_connect_peer1.conf | |||
@@ -22,7 +22,6 @@ UNIXPATH = /tmp/gnunet-p1-service-peerinfo.sock | |||
22 | [transport] | 22 | [transport] |
23 | PORT = 12004 | 23 | PORT = 12004 |
24 | UNIXPATH = /tmp/gnunet-p1-service-transport.sock | 24 | UNIXPATH = /tmp/gnunet-p1-service-transport.sock |
25 | #DEBUG = YES | ||
26 | 25 | ||
27 | [transport-tcp] | 26 | [transport-tcp] |
28 | PORT = 12005 | 27 | PORT = 12005 |
diff --git a/src/transport/test_transport_api_disconnect_tcp_peer1.conf b/src/transport/test_transport_api_disconnect_tcp_peer1.conf index 6879d0534..5f1d693a8 100644 --- a/src/transport/test_transport_api_disconnect_tcp_peer1.conf +++ b/src/transport/test_transport_api_disconnect_tcp_peer1.conf | |||
@@ -27,5 +27,4 @@ UNIXPATH = /tmp/gnunet-p1-service-peerinfo.sock | |||
27 | PORT = 12001 | 27 | PORT = 12001 |
28 | PLUGINS = tcp | 28 | PLUGINS = tcp |
29 | UNIXPATH = /tmp/gnunet-p1-service-transport.sock | 29 | UNIXPATH = /tmp/gnunet-p1-service-transport.sock |
30 | #DEBUG = YES | ||
31 | 30 | ||
diff --git a/src/transport/test_transport_api_http_peer1.conf b/src/transport/test_transport_api_http_peer1.conf index e0b60e37f..3c1b41d06 100644 --- a/src/transport/test_transport_api_http_peer1.conf +++ b/src/transport/test_transport_api_http_peer1.conf | |||
@@ -22,7 +22,6 @@ PORT = 12082 | |||
22 | UNIXPATH = /tmp/gnunet-p1-service-peerinfo.sock | 22 | UNIXPATH = /tmp/gnunet-p1-service-peerinfo.sock |
23 | 23 | ||
24 | [transport] | 24 | [transport] |
25 | #DEBUG = YES | ||
26 | PORT = 12081 | 25 | PORT = 12081 |
27 | PLUGINS = http_client | 26 | PLUGINS = http_client |
28 | #BINARY = .libs/gnunet-service-transport | 27 | #BINARY = .libs/gnunet-service-transport |
diff --git a/src/transport/test_transport_api_http_peer2.conf b/src/transport/test_transport_api_http_peer2.conf index 4e4c22e30..f348bf404 100644 --- a/src/transport/test_transport_api_http_peer2.conf +++ b/src/transport/test_transport_api_http_peer2.conf | |||
@@ -25,7 +25,6 @@ PORT = 12092 | |||
25 | UNIXPATH = /tmp/gnunet-p2-service-peerinfo.sock | 25 | UNIXPATH = /tmp/gnunet-p2-service-peerinfo.sock |
26 | 26 | ||
27 | [transport] | 27 | [transport] |
28 | #DEBUG = YES | ||
29 | PORT = 12091 | 28 | PORT = 12091 |
30 | PLUGINS = http_server | 29 | PLUGINS = http_server |
31 | UNIXPATH = /tmp/gnunet-p2-service-transport.sock | 30 | UNIXPATH = /tmp/gnunet-p2-service-transport.sock |
diff --git a/src/transport/test_transport_api_http_reverse_peer1.conf b/src/transport/test_transport_api_http_reverse_peer1.conf index c38c36a18..93d8bd34b 100644 --- a/src/transport/test_transport_api_http_reverse_peer1.conf +++ b/src/transport/test_transport_api_http_reverse_peer1.conf | |||
@@ -23,7 +23,6 @@ PORT = 12092 | |||
23 | UNIXPATH = /tmp/gnunet-p1-service-peerinfo.sock | 23 | UNIXPATH = /tmp/gnunet-p1-service-peerinfo.sock |
24 | 24 | ||
25 | [transport] | 25 | [transport] |
26 | #DEBUG = YES | ||
27 | PORT = 12091 | 26 | PORT = 12091 |
28 | PLUGINS = http_client | 27 | PLUGINS = http_client |
29 | #BINARY = .libs/gnunet-service-transport | 28 | #BINARY = .libs/gnunet-service-transport |
@@ -33,7 +32,6 @@ PREFIX = valgrind --leak-check=full | |||
33 | 32 | ||
34 | 33 | ||
35 | [ats] | 34 | [ats] |
36 | #DEBUG = YES | ||
37 | WAN_QUOTA_IN = unlimited | 35 | WAN_QUOTA_IN = unlimited |
38 | WAN_QUOTA_OUT = unlimited | 36 | WAN_QUOTA_OUT = unlimited |
39 | PORT = 12006 | 37 | PORT = 12006 |
diff --git a/src/transport/test_transport_api_https_peer1.conf b/src/transport/test_transport_api_https_peer1.conf index 78d3ca0a4..48302a640 100644 --- a/src/transport/test_transport_api_https_peer1.conf +++ b/src/transport/test_transport_api_https_peer1.conf | |||
@@ -26,6 +26,5 @@ UNIXPATH = /tmp/gnunet-p1-service-peerinfo.sock | |||
26 | PORT = 12101 | 26 | PORT = 12101 |
27 | PLUGINS = https_client | 27 | PLUGINS = https_client |
28 | UNIXPATH = /tmp/gnunet-p1-service-transport.sock | 28 | UNIXPATH = /tmp/gnunet-p1-service-transport.sock |
29 | DEBUG = NO | ||
30 | 29 | ||
31 | 30 | ||
diff --git a/src/transport/test_transport_api_https_peer2.conf b/src/transport/test_transport_api_https_peer2.conf index a347887bb..566997f93 100644 --- a/src/transport/test_transport_api_https_peer2.conf +++ b/src/transport/test_transport_api_https_peer2.conf | |||
@@ -29,6 +29,5 @@ UNIXPATH = /tmp/gnunet-p2-service-peerinfo.sock | |||
29 | PORT = 12111 | 29 | PORT = 12111 |
30 | PLUGINS = https_server | 30 | PLUGINS = https_server |
31 | UNIXPATH = /tmp/gnunet-p2-service-transport.sock | 31 | UNIXPATH = /tmp/gnunet-p2-service-transport.sock |
32 | DEBUG = NO | ||
33 | 32 | ||
34 | 33 | ||
diff --git a/src/transport/test_transport_api_reliability_http_peer1.conf b/src/transport/test_transport_api_reliability_http_peer1.conf index 9e39e3e41..ea5de0bc9 100644 --- a/src/transport/test_transport_api_reliability_http_peer1.conf +++ b/src/transport/test_transport_api_reliability_http_peer1.conf | |||
@@ -30,5 +30,4 @@ UNIXPATH = /tmp/gnunet-p1-service-peerinfo.sock | |||
30 | PORT = 12181 | 30 | PORT = 12181 |
31 | PLUGINS = http_client | 31 | PLUGINS = http_client |
32 | UNIXPATH = /tmp/gnunet-p1-service-transport.sock | 32 | UNIXPATH = /tmp/gnunet-p1-service-transport.sock |
33 | #DEBUG = YES | ||
34 | 33 | ||
diff --git a/src/transport/test_transport_api_reliability_http_peer2.conf b/src/transport/test_transport_api_reliability_http_peer2.conf index 3174e3d00..083cd4dd8 100644 --- a/src/transport/test_transport_api_reliability_http_peer2.conf +++ b/src/transport/test_transport_api_reliability_http_peer2.conf | |||
@@ -27,5 +27,4 @@ UNIXPATH = /tmp/gnunet-p2-service-peerinfo.sock | |||
27 | PORT = 12191 | 27 | PORT = 12191 |
28 | PLUGINS = http_server | 28 | PLUGINS = http_server |
29 | UNIXPATH = /tmp/gnunet-p2-service-transport.sock | 29 | UNIXPATH = /tmp/gnunet-p2-service-transport.sock |
30 | #DEBUG = YES | ||
31 | 30 | ||
diff --git a/src/transport/test_transport_api_reliability_tcp_peer2.conf b/src/transport/test_transport_api_reliability_tcp_peer2.conf index 3cb42c0b6..181aab3de 100644 --- a/src/transport/test_transport_api_reliability_tcp_peer2.conf +++ b/src/transport/test_transport_api_reliability_tcp_peer2.conf | |||
@@ -27,4 +27,3 @@ UNIXPATH = /tmp/gnunet-p2-service-peerinfo.sock | |||
27 | PORT = 12010 | 27 | PORT = 12010 |
28 | PLUGINS = tcp | 28 | PLUGINS = tcp |
29 | UNIXPATH = /tmp/gnunet-p2-service-transport.sock | 29 | UNIXPATH = /tmp/gnunet-p2-service-transport.sock |
30 | #DEBUG = YES | ||
diff --git a/src/transport/test_transport_api_tcp_nat_peer1.conf b/src/transport/test_transport_api_tcp_nat_peer1.conf index 4ebf5b3be..8e33f273d 100644 --- a/src/transport/test_transport_api_tcp_nat_peer1.conf +++ b/src/transport/test_transport_api_tcp_nat_peer1.conf | |||
@@ -32,5 +32,4 @@ UNIXPATH = /tmp/gnunet-p1-service-peerinfo.sock | |||
32 | PORT = 29542 | 32 | PORT = 29542 |
33 | PLUGINS = tcp | 33 | PLUGINS = tcp |
34 | UNIXPATH = /tmp/gnunet-p1-service-transport.sock | 34 | UNIXPATH = /tmp/gnunet-p1-service-transport.sock |
35 | #DEBUG = YES | ||
36 | 35 | ||
diff --git a/src/transport/test_transport_api_tcp_nat_peer2.conf b/src/transport/test_transport_api_tcp_nat_peer2.conf index 1ef51c9c9..f8b8b013e 100644 --- a/src/transport/test_transport_api_tcp_nat_peer2.conf +++ b/src/transport/test_transport_api_tcp_nat_peer2.conf | |||
@@ -31,4 +31,3 @@ UNIXPATH = /tmp/gnunet-p2-service-peerinfo.sock | |||
31 | PORT = 45923 | 31 | PORT = 45923 |
32 | PLUGINS = tcp | 32 | PLUGINS = tcp |
33 | UNIXPATH = /tmp/gnunet-p2-service-transport.sock | 33 | UNIXPATH = /tmp/gnunet-p2-service-transport.sock |
34 | #DEBUG = YES | ||
diff --git a/src/transport/test_transport_api_tcp_peer1.conf b/src/transport/test_transport_api_tcp_peer1.conf index 54abfa5ba..db662826b 100644 --- a/src/transport/test_transport_api_tcp_peer1.conf +++ b/src/transport/test_transport_api_tcp_peer1.conf | |||
@@ -27,5 +27,4 @@ UNIXPATH = /tmp/gnunet-p1-service-peerinfo.sock | |||
27 | PORT = 12001 | 27 | PORT = 12001 |
28 | UNIXPATH = /tmp/gnunet-p1-service-transport.sock | 28 | UNIXPATH = /tmp/gnunet-p1-service-transport.sock |
29 | PLUGINS = tcp | 29 | PLUGINS = tcp |
30 | #DEBUG = YES | ||
31 | 30 | ||
diff --git a/src/transport/test_transport_api_timeout_http_peer1.conf b/src/transport/test_transport_api_timeout_http_peer1.conf index 2eb23662a..665527b3e 100644 --- a/src/transport/test_transport_api_timeout_http_peer1.conf +++ b/src/transport/test_transport_api_timeout_http_peer1.conf | |||
@@ -24,7 +24,6 @@ PORT = 12082 | |||
24 | UNIXPATH = /tmp/gnunet-p1-service-peerinfo.sock | 24 | UNIXPATH = /tmp/gnunet-p1-service-peerinfo.sock |
25 | 25 | ||
26 | [transport] | 26 | [transport] |
27 | #DEBUG = YES | ||
28 | PORT = 12081 | 27 | PORT = 12081 |
29 | PLUGINS = http_client | 28 | PLUGINS = http_client |
30 | #BINARY = .libs/gnunet-service-transport | 29 | #BINARY = .libs/gnunet-service-transport |
diff --git a/src/transport/test_transport_api_timeout_http_peer2.conf b/src/transport/test_transport_api_timeout_http_peer2.conf index 0aa77a9b9..1fdc94788 100644 --- a/src/transport/test_transport_api_timeout_http_peer2.conf +++ b/src/transport/test_transport_api_timeout_http_peer2.conf | |||
@@ -28,7 +28,6 @@ PORT = 12092 | |||
28 | UNIXPATH = /tmp/gnunet-p2-service-peerinfo.sock | 28 | UNIXPATH = /tmp/gnunet-p2-service-peerinfo.sock |
29 | 29 | ||
30 | [transport] | 30 | [transport] |
31 | #DEBUG = YES | ||
32 | PORT = 12091 | 31 | PORT = 12091 |
33 | PLUGINS = http_server | 32 | PLUGINS = http_server |
34 | UNIXPATH = /tmp/gnunet-p2-service-transport.sock | 33 | UNIXPATH = /tmp/gnunet-p2-service-transport.sock |
diff --git a/src/transport/test_transport_api_timeout_https_peer1.conf b/src/transport/test_transport_api_timeout_https_peer1.conf index ff1ef47bd..fda69ae5c 100644 --- a/src/transport/test_transport_api_timeout_https_peer1.conf +++ b/src/transport/test_transport_api_timeout_https_peer1.conf | |||
@@ -23,6 +23,5 @@ UNIXPATH = /tmp/gnunet-p1-service-peerinfo.sock | |||
23 | PORT = 12101 | 23 | PORT = 12101 |
24 | PLUGINS = https_client | 24 | PLUGINS = https_client |
25 | UNIXPATH = /tmp/gnunet-p1-service-transport.sock | 25 | UNIXPATH = /tmp/gnunet-p1-service-transport.sock |
26 | DEBUG = NO | ||
27 | 26 | ||
28 | 27 | ||
diff --git a/src/transport/test_transport_api_timeout_https_peer2.conf b/src/transport/test_transport_api_timeout_https_peer2.conf index 35fba0a83..ca54e1718 100644 --- a/src/transport/test_transport_api_timeout_https_peer2.conf +++ b/src/transport/test_transport_api_timeout_https_peer2.conf | |||
@@ -27,6 +27,5 @@ UNIXPATH = /tmp/gnunet-p2-service-peerinfo.sock | |||
27 | PORT = 12111 | 27 | PORT = 12111 |
28 | PLUGINS = https_server | 28 | PLUGINS = https_server |
29 | UNIXPATH = /tmp/gnunet-p2-service-transport.sock | 29 | UNIXPATH = /tmp/gnunet-p2-service-transport.sock |
30 | DEBUG = NO | ||
31 | 30 | ||
32 | 31 | ||
diff --git a/src/transport/test_transport_api_udp_nat_peer1.conf b/src/transport/test_transport_api_udp_nat_peer1.conf index 6e643d5af..e406883e4 100644 --- a/src/transport/test_transport_api_udp_nat_peer1.conf +++ b/src/transport/test_transport_api_udp_nat_peer1.conf | |||
@@ -31,6 +31,5 @@ UNIXPATH = /tmp/gnunet-p1-service-peerinfo.sock | |||
31 | PORT = 12061 | 31 | PORT = 12061 |
32 | PLUGINS = udp | 32 | PLUGINS = udp |
33 | UNIXPATH = /tmp/gnunet-p1-service-transport.sock | 33 | UNIXPATH = /tmp/gnunet-p1-service-transport.sock |
34 | DEBUG = NO | ||
35 | 34 | ||
36 | 35 | ||
diff --git a/src/transport/test_transport_api_udp_nat_peer2.conf b/src/transport/test_transport_api_udp_nat_peer2.conf index 1c1258ad1..43ed3a91b 100644 --- a/src/transport/test_transport_api_udp_nat_peer2.conf +++ b/src/transport/test_transport_api_udp_nat_peer2.conf | |||
@@ -29,6 +29,5 @@ UNIXPATH = /tmp/gnunet-p2-service-peerinfo.sock | |||
29 | PORT = 12071 | 29 | PORT = 12071 |
30 | PLUGINS = udp | 30 | PLUGINS = udp |
31 | UNIXPATH = /tmp/gnunet-p2-service-transport.sock | 31 | UNIXPATH = /tmp/gnunet-p2-service-transport.sock |
32 | DEBUG = NO | ||
33 | 32 | ||
34 | 33 | ||
diff --git a/src/transport/test_transport_api_wlan_peer1.conf b/src/transport/test_transport_api_wlan_peer1.conf index ff37415a4..3f12ce505 100644 --- a/src/transport/test_transport_api_wlan_peer1.conf +++ b/src/transport/test_transport_api_wlan_peer1.conf | |||
@@ -7,7 +7,6 @@ INTERFACE = mon0 | |||
7 | TESTMODE = 1 | 7 | TESTMODE = 1 |
8 | 8 | ||
9 | [arm] | 9 | [arm] |
10 | DEBUG = YES | ||
11 | PORT = 12164 | 10 | PORT = 12164 |
12 | UNIXPATH = /tmp/gnunet-p1-service-arm.sock | 11 | UNIXPATH = /tmp/gnunet-p1-service-arm.sock |
13 | 12 | ||
@@ -26,7 +25,6 @@ UNIXPATH = /tmp/gnunet-p1-service-peerinfo.sock | |||
26 | [transport] | 25 | [transport] |
27 | PORT = 12160 | 26 | PORT = 12160 |
28 | PLUGINS = wlan | 27 | PLUGINS = wlan |
29 | #DEBUG = YES | ||
30 | UNIXPATH = /tmp/gnunet-p1-service-transport.sock | 28 | UNIXPATH = /tmp/gnunet-p1-service-transport.sock |
31 | #PREFIX = xterm -T transport2 -e gdb --command=cmd --args | 29 | #PREFIX = xterm -T transport2 -e gdb --command=cmd --args |
32 | #PREFIX = valgrind --leak-check=full --show-reachable=yes --main-stacksize=104857600 | 30 | #PREFIX = valgrind --leak-check=full --show-reachable=yes --main-stacksize=104857600 |
diff --git a/src/transport/test_transport_api_wlan_peer2.conf b/src/transport/test_transport_api_wlan_peer2.conf index 87a6036fb..451a2a666 100644 --- a/src/transport/test_transport_api_wlan_peer2.conf +++ b/src/transport/test_transport_api_wlan_peer2.conf | |||
@@ -8,7 +8,6 @@ TESTMODE = 2 | |||
8 | 8 | ||
9 | [arm] | 9 | [arm] |
10 | PORT = 12174 | 10 | PORT = 12174 |
11 | DEBUG = YES | ||
12 | UNIXPATH = /tmp/gnunet-p2-service-arm.sock | 11 | UNIXPATH = /tmp/gnunet-p2-service-arm.sock |
13 | 12 | ||
14 | [statistics] | 13 | [statistics] |
@@ -26,7 +25,6 @@ UNIXPATH = /tmp/gnunet-p2-service-peerinfo.sock | |||
26 | [transport] | 25 | [transport] |
27 | PORT = 12170 | 26 | PORT = 12170 |
28 | PLUGINS = wlan | 27 | PLUGINS = wlan |
29 | #DEBUG = YES | ||
30 | UNIXPATH = /tmp/gnunet-p2-service-transport.sock | 28 | UNIXPATH = /tmp/gnunet-p2-service-transport.sock |
31 | #PREFIX = xterm -T transport2 -e gdb --command=cmd --args | 29 | #PREFIX = xterm -T transport2 -e gdb --command=cmd --args |
32 | #PREFIX = valgrind --leak-check=full --show-reachable=yes --main-stacksize=104857600 | 30 | #PREFIX = valgrind --leak-check=full --show-reachable=yes --main-stacksize=104857600 |
diff --git a/src/transport/transport-testing.c b/src/transport/transport-testing.c index f1c06ebc0..0c51ef334 100644 --- a/src/transport/transport-testing.c +++ b/src/transport/transport-testing.c | |||
@@ -71,19 +71,15 @@ notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
71 | const struct GNUNET_ATS_Information *ats, uint32_t ats_count) | 71 | const struct GNUNET_ATS_Information *ats, uint32_t ats_count) |
72 | { | 72 | { |
73 | struct PeerContext *p = cls; | 73 | struct PeerContext *p = cls; |
74 | char *p2_s; | ||
75 | struct PeerContext *p2; | ||
74 | 76 | ||
75 | /* Find PeerContext */ | 77 | GNUNET_assert (NULL != p); |
76 | GNUNET_assert (p != 0); | 78 | GNUNET_assert (NULL != p->tth); |
77 | GNUNET_assert (p->tth != NULL); | 79 | p2 = find_peer_context (p->tth, peer); |
78 | struct PeerContext *p2 = find_peer_context (p->tth, peer); | ||
79 | |||
80 | if (p == NULL) | ||
81 | return; | ||
82 | if (p->nc != NULL) | 80 | if (p->nc != NULL) |
83 | p->nc (p->cb_cls, peer, ats, ats_count); | 81 | p->nc (p->cb_cls, peer, ats, ats_count); |
84 | 82 | ||
85 | char *p2_s; | ||
86 | |||
87 | if (p2 != NULL) | 83 | if (p2 != NULL) |
88 | GNUNET_asprintf (&p2_s, "%u (`%s')", p2->no, GNUNET_i2s (&p2->id)); | 84 | GNUNET_asprintf (&p2_s, "%u (`%s')", p2->no, GNUNET_i2s (&p2->id)); |
89 | else | 85 | else |
@@ -788,5 +784,4 @@ fail: | |||
788 | } | 784 | } |
789 | 785 | ||
790 | 786 | ||
791 | |||
792 | /* end of transport-testing.c */ | 787 | /* end of transport-testing.c */ |