From 2007200fb5d9b03ff0b1b055c3c7ccc8c9738f34 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Thu, 15 Jan 2015 14:19:56 +0000 Subject: [PATCH] - use path_cmp --- src/cadet/gnunet-service-cadet_peer.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/cadet/gnunet-service-cadet_peer.c b/src/cadet/gnunet-service-cadet_peer.c index 396ebeb82..e27ba9fde 100644 --- a/src/cadet/gnunet-service-cadet_peer.c +++ b/src/cadet/gnunet-service-cadet_peer.c @@ -2081,9 +2081,7 @@ GCP_remove_path (struct CadetPeer *peer, struct CadetPeerPath *path) for (iter = peer->path_head; NULL != iter; iter = next) { next = iter->next; - if (0 == memcmp (path->peers, iter->peers, - sizeof (GNUNET_PEER_Id) * path->length) - && iter->length == path->length) + if (0 == path_cmp (path, iter)) { GNUNET_CONTAINER_DLL_remove (peer->path_head, peer->path_tail, iter); if (iter != path) -- 2.25.1