diff options
author | Bart Polot <bart@net.in.tum.de> | 2016-03-30 09:17:47 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2016-03-30 09:17:47 +0000 |
commit | d1feb1925526307eeeef5875e010117f3ed55516 (patch) | |
tree | e70f38b3ded82ca2778bc4cf84b4ba20adb4c38a /src | |
parent | a0696678bce69e18b081a3fcdddcdc5b9e8fbb84 (diff) | |
download | gnunet-d1feb1925526307eeeef5875e010117f3ed55516.tar.gz gnunet-d1feb1925526307eeeef5875e010117f3ed55516.zip |
- typo, comparison order
Diffstat (limited to 'src')
-rw-r--r-- | src/cadet/gnunet-service-cadet_connection.c | 8 |
1 files 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) | |||
1652 | /** | 1652 | /** |
1653 | * Iterator to compare each connection's path with the path of a new connection. | 1653 | * Iterator to compare each connection's path with the path of a new connection. |
1654 | * | 1654 | * |
1655 | * If the connection conincides, the c member of path is set to the connection | 1655 | * If the connection coincides, the c member of path is set to the connection |
1656 | * and the destroy flag of the connection is set. | 1656 | * and the destroy flag of the connection is set. |
1657 | * | 1657 | * |
1658 | * @param cls Closure (new path). | 1658 | * @param cls Closure (new path). |
@@ -1668,9 +1668,9 @@ check_path (void *cls, struct CadetConnection *c) | |||
1668 | GCC_2s (c), c, c->path->length); | 1668 | GCC_2s (c), c, c->path->length); |
1669 | 1669 | ||
1670 | if (c != new_conn | 1670 | if (c != new_conn |
1671 | && c->destroy == GNUNET_NO | 1671 | && GNUNET_NO == c->destroy |
1672 | && c->state != CADET_CONNECTION_BROKEN | 1672 | && CADET_CONNECTION_BROKEN != c->state |
1673 | && c->state != CADET_CONNECTION_DESTROYED | 1673 | && CADET_CONNECTION_DESTROYED != c->state |
1674 | && path_equivalent (path, c->path)) | 1674 | && path_equivalent (path, c->path)) |
1675 | { | 1675 | { |
1676 | new_conn->destroy = GNUNET_YES; | 1676 | new_conn->destroy = GNUNET_YES; |