send to self, remove assertion failure
authorNathan S. Evans <evans@in.tum.de>
Mon, 10 Jan 2011 10:23:45 +0000 (10:23 +0000)
committerNathan S. Evans <evans@in.tum.de>
Mon, 10 Jan 2011 10:23:45 +0000 (10:23 +0000)
src/core/core_api.c

index 1ececcb6413e7c768eaa1165807012b87e39af27..9001b21d9f0993b0e0802b6e6c0f9114ce7e5ecc 100644 (file)
@@ -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)) ||