From 4d4e195ebed909301f50f6fe6b9523f91f8e453b Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Mon, 10 Jan 2011 10:23:45 +0000 Subject: [PATCH] send to self, remove assertion failure --- src/core/core_api.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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)) || -- 2.25.1