diff options
author | Bart Polot <bart@net.in.tum.de> | 2015-06-25 03:16:52 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2015-06-25 03:16:52 +0000 |
commit | 315bbbff5376555ca1957a0442325ddafb9553f1 (patch) | |
tree | 8980dd7d42ba985b61a31cd7c06d53b7e6ec621e /src | |
parent | 8115286b9e786fd7b54e28306f993ef49c1d98d0 (diff) | |
download | gnunet-315bbbff5376555ca1957a0442325ddafb9553f1.tar.gz gnunet-315bbbff5376555ca1957a0442325ddafb9553f1.zip |
- documentation, statistics about failures
Diffstat (limited to 'src')
-rw-r--r-- | src/cadet/gnunet-service-cadet_connection.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c index a4ad87ed1..c446b05f6 100644 --- a/src/cadet/gnunet-service-cadet_connection.c +++ b/src/cadet/gnunet-service-cadet_connection.c | |||
@@ -1800,10 +1800,17 @@ GCC_handle_create (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
1800 | path = path_build_from_peer_ids ((struct GNUNET_PeerIdentity *) &msg[1], | 1800 | path = path_build_from_peer_ids ((struct GNUNET_PeerIdentity *) &msg[1], |
1801 | size, myid, &own_pos); | 1801 | size, myid, &own_pos); |
1802 | if (NULL == path) | 1802 | if (NULL == path) |
1803 | { | ||
1804 | /* Path was malformed, probably our own ID was not in it. */ | ||
1805 | GNUNET_STATISTICS_update (stats, "# malformed paths", 1, GNUNET_NO); | ||
1806 | GNUNET_break_op (0); | ||
1803 | return GNUNET_OK; | 1807 | return GNUNET_OK; |
1808 | } | ||
1804 | 1809 | ||
1805 | if (0 == own_pos) | 1810 | if (0 == own_pos) |
1806 | { | 1811 | { |
1812 | /* We received this request from a neighbor, we cannot be origin */ | ||
1813 | GNUNET_STATISTICS_update (stats, "# fake paths", 1, GNUNET_NO); | ||
1807 | GNUNET_break_op (0); | 1814 | GNUNET_break_op (0); |
1808 | path_destroy (path); | 1815 | path_destroy (path); |
1809 | return GNUNET_OK; | 1816 | return GNUNET_OK; |