From: Nathan S. Evans Date: Mon, 10 Jan 2011 10:23:45 +0000 (+0000) Subject: send to self, remove assertion failure X-Git-Tag: initial-import-from-subversion-38251~19360 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4d4e195ebed909301f50f6fe6b9523f91f8e453b;p=oweals%2Fgnunet.git send to self, remove assertion failure --- diff --git a/src/core/core_api.c b/src/core/core_api.c index 1ececcb64..9001b21d9 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c @@ -987,7 +987,6 @@ main_notify_handler (void *cls, if (NULL == h->status_events) { GNUNET_break (0); - break; } if (msize < sizeof (struct PeerStatusNotifyMessage)) { @@ -1040,14 +1039,7 @@ main_notify_handler (void *cls, return; } ntm = (const struct NotifyTrafficMessage *) msg; - if (0 == memcmp (&h->me, - &ntm->peer, - sizeof (struct GNUNET_PeerIdentity))) - { - /* self-change!? */ - GNUNET_break (0); - return; - } + ats_count = ntohl (ntm->ats_count); if ( (msize < sizeof (struct NotifyTrafficMessage) + ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information) + sizeof (struct GNUNET_MessageHeader)) ||