diff options
-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; |