[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: fix another off by one
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: fix another off by one |
Date: |
Sun, 20 May 2018 00:45:06 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 18a14f4da fix another off by one
18a14f4da is described below
commit 18a14f4dac9dbf517fbe8158b740147a06083cc4
Author: Christian Grothoff <address@hidden>
AuthorDate: Sun May 20 00:45:04 2018 +0200
fix another off by one
---
src/cadet/gnunet-service-cadet_channel.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/cadet/gnunet-service-cadet_channel.c
b/src/cadet/gnunet-service-cadet_channel.c
index 1a2b32be0..7a7942dea 100644
--- a/src/cadet/gnunet-service-cadet_channel.c
+++ b/src/cadet/gnunet-service-cadet_channel.c
@@ -411,7 +411,7 @@ GCCH_2s (const struct CadetChannel *ch)
/**
- * Hash the @a port and @a initiator and @a listener to
+ * Hash the @a port and @a initiator and @a listener to
* calculate the "challenge" @a h_port we send to the other
* peer on #GNUNET_MESSAGE_TYPE_CADET_CHANNEL_OPEN.
*
@@ -1186,7 +1186,7 @@ GCCH_handle_channel_open_ack (struct CadetChannel *ch,
port,
sizeof (struct GNUNET_HashCode)))
{
- /* Other peer failed to provide the right port,
+ /* Other peer failed to provide the right port,
refuse connection. */
GNUNET_break_op (0);
return;
@@ -1822,7 +1822,7 @@ GCCH_handle_local_data (struct CadetChannel *ch,
{
struct CadetReliableMessage *crm;
- if (ch->pending_messages > ch->max_pending_messages)
+ if (ch->pending_messages >= ch->max_pending_messages)
{
GNUNET_break (0);
return GNUNET_SYSERR;
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: fix another off by one,
gnunet <=