aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/gnunet-service-mesh_connection.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-03-06 01:36:29 +0000
committerBart Polot <bart@net.in.tum.de>2014-03-06 01:36:29 +0000
commit02a49c06cda249d245b76522358fb1e8038929ff (patch)
tree7760d7e00dfc403acb3f54b80572e86a4ca2e775 /src/mesh/gnunet-service-mesh_connection.c
parent20a75818488f503411355eb3732931cc9d10b82a (diff)
downloadgnunet-02a49c06cda249d245b76522358fb1e8038929ff.tar.gz
gnunet-02a49c06cda249d245b76522358fb1e8038929ff.zip
- fix expected KX size
Diffstat (limited to 'src/mesh/gnunet-service-mesh_connection.c')
-rw-r--r--src/mesh/gnunet-service-mesh_connection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesh/gnunet-service-mesh_connection.c b/src/mesh/gnunet-service-mesh_connection.c
index 290d950ac..1df839d81 100644
--- a/src/mesh/gnunet-service-mesh_connection.c
+++ b/src/mesh/gnunet-service-mesh_connection.c
@@ -1986,7 +1986,7 @@ handle_mesh_kx (const struct GNUNET_PeerIdentity *peer,
1986 /* Check size */ 1986 /* Check size */
1987 size = ntohs (msg->header.size); 1987 size = ntohs (msg->header.size);
1988 if (size < 1988 if (size <
1989 sizeof (struct GNUNET_MESH_Encrypted) + 1989 sizeof (struct GNUNET_MESH_KX) +
1990 sizeof (struct GNUNET_MessageHeader)) 1990 sizeof (struct GNUNET_MessageHeader))
1991 { 1991 {
1992 GNUNET_break_op (0); 1992 GNUNET_break_op (0);
@@ -1998,7 +1998,7 @@ handle_mesh_kx (const struct GNUNET_PeerIdentity *peer,
1998 if (NULL == c) 1998 if (NULL == c)
1999 { 1999 {
2000 GNUNET_STATISTICS_update (stats, "# unknown connection", 1, GNUNET_NO); 2000 GNUNET_STATISTICS_update (stats, "# unknown connection", 1, GNUNET_NO);
2001 LOG (GNUNET_ERROR_TYPE_DEBUG, "WARNING kx on unknown connection %s\n", 2001 LOG (GNUNET_ERROR_TYPE_DEBUG, "kx on unknown connection %s\n",
2002 GNUNET_h2s (&msg->cid)); 2002 GNUNET_h2s (&msg->cid));
2003 return GNUNET_OK; 2003 return GNUNET_OK;
2004 } 2004 }