diff options
Diffstat (limited to 'src/peerinfo/peerinfo_api.c')
-rw-r--r-- | src/peerinfo/peerinfo_api.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/peerinfo/peerinfo_api.c b/src/peerinfo/peerinfo_api.c index 4b56b34c7..485b5e183 100644 --- a/src/peerinfo/peerinfo_api.c +++ b/src/peerinfo/peerinfo_api.c | |||
@@ -271,9 +271,8 @@ check_info (void *cls, | |||
271 | return GNUNET_SYSERR; | 271 | return GNUNET_SYSERR; |
272 | } | 272 | } |
273 | if ( (GNUNET_YES == ic->have_peer) && | 273 | if ( (GNUNET_YES == ic->have_peer) && |
274 | (0 != memcmp (&ic->peer, | 274 | (0 != GNUNET_memcmp (&ic->peer, |
275 | &im->peer, | 275 | &im->peer)) ) |
276 | sizeof (struct GNUNET_PeerIdentity))) ) | ||
277 | { | 276 | { |
278 | /* bogus message (from a different iteration call?); out of sequence! */ | 277 | /* bogus message (from a different iteration call?); out of sequence! */ |
279 | LOG (GNUNET_ERROR_TYPE_ERROR, | 278 | LOG (GNUNET_ERROR_TYPE_ERROR, |
@@ -303,9 +302,8 @@ check_info (void *cls, | |||
303 | GNUNET_break (0); | 302 | GNUNET_break (0); |
304 | return GNUNET_SYSERR; | 303 | return GNUNET_SYSERR; |
305 | } | 304 | } |
306 | if (0 != memcmp (&im->peer, | 305 | if (0 != GNUNET_memcmp (&im->peer, |
307 | &id, | 306 | &id)) |
308 | sizeof (struct GNUNET_PeerIdentity))) | ||
309 | { | 307 | { |
310 | /* malformed message */ | 308 | /* malformed message */ |
311 | GNUNET_break (0); | 309 | GNUNET_break (0); |