/**
- * 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.
*
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;
{
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;