From d1feb1925526307eeeef5875e010117f3ed55516 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Wed, 30 Mar 2016 09:17:47 +0000 Subject: [PATCH] - typo, comparison order --- src/cadet/gnunet-service-cadet_connection.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c index 2fe0c277b..35b0585ea 100644 --- a/src/cadet/gnunet-service-cadet_connection.c +++ b/src/cadet/gnunet-service-cadet_connection.c @@ -1652,7 +1652,7 @@ connection_reset_timeout (struct CadetConnection *c, int fwd) /** * Iterator to compare each connection's path with the path of a new connection. * - * If the connection conincides, the c member of path is set to the connection + * If the connection coincides, the c member of path is set to the connection * and the destroy flag of the connection is set. * * @param cls Closure (new path). @@ -1668,9 +1668,9 @@ check_path (void *cls, struct CadetConnection *c) GCC_2s (c), c, c->path->length); if (c != new_conn - && c->destroy == GNUNET_NO - && c->state != CADET_CONNECTION_BROKEN - && c->state != CADET_CONNECTION_DESTROYED + && GNUNET_NO == c->destroy + && CADET_CONNECTION_BROKEN != c->state + && CADET_CONNECTION_DESTROYED != c->state && path_equivalent (path, c->path)) { new_conn->destroy = GNUNET_YES; -- 2.25.1