diff options
author | Nathan S. Evans <evans@in.tum.de> | 2011-01-10 10:23:45 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2011-01-10 10:23:45 +0000 |
commit | 4d4e195ebed909301f50f6fe6b9523f91f8e453b (patch) | |
tree | 23412c61060632b78b769aa9f5c494bf0cbfa091 /src/core | |
parent | 9b64dafa17ba9b58f3899bdd53b4103e86369ed3 (diff) | |
download | gnunet-4d4e195ebed909301f50f6fe6b9523f91f8e453b.tar.gz gnunet-4d4e195ebed909301f50f6fe6b9523f91f8e453b.zip |
send to self, remove assertion failure
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/core_api.c | 10 |
1 files changed, 1 insertions, 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, | |||
987 | if (NULL == h->status_events) | 987 | if (NULL == h->status_events) |
988 | { | 988 | { |
989 | GNUNET_break (0); | 989 | GNUNET_break (0); |
990 | break; | ||
991 | } | 990 | } |
992 | if (msize < sizeof (struct PeerStatusNotifyMessage)) | 991 | if (msize < sizeof (struct PeerStatusNotifyMessage)) |
993 | { | 992 | { |
@@ -1040,14 +1039,7 @@ main_notify_handler (void *cls, | |||
1040 | return; | 1039 | return; |
1041 | } | 1040 | } |
1042 | ntm = (const struct NotifyTrafficMessage *) msg; | 1041 | ntm = (const struct NotifyTrafficMessage *) msg; |
1043 | if (0 == memcmp (&h->me, | 1042 | |
1044 | &ntm->peer, | ||
1045 | sizeof (struct GNUNET_PeerIdentity))) | ||
1046 | { | ||
1047 | /* self-change!? */ | ||
1048 | GNUNET_break (0); | ||
1049 | return; | ||
1050 | } | ||
1051 | ats_count = ntohl (ntm->ats_count); | 1043 | ats_count = ntohl (ntm->ats_count); |
1052 | if ( (msize < sizeof (struct NotifyTrafficMessage) + ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information) | 1044 | if ( (msize < sizeof (struct NotifyTrafficMessage) + ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information) |
1053 | + sizeof (struct GNUNET_MessageHeader)) || | 1045 | + sizeof (struct GNUNET_MessageHeader)) || |