aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-10-20 11:46:54 +0000
committerChristian Grothoff <christian@grothoff.org>2010-10-20 11:46:54 +0000
commit13bf80ebd02a27fa1ba194ec2cbe0a2df5664156 (patch)
treea9eefa6a893ef0c498dd5873f116ca7dc6888600 /src/core
parent906cc858fe8d5e23b10939d515cb7a58cfe042de (diff)
downloadgnunet-13bf80ebd02a27fa1ba194ec2cbe0a2df5664156.tar.gz
gnunet-13bf80ebd02a27fa1ba194ec2cbe0a2df5664156.zip
fix
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/core_api.c b/src/core/core_api.c
index 763d48a39..6d492537d 100644
--- a/src/core/core_api.c
+++ b/src/core/core_api.c
@@ -879,7 +879,7 @@ produce_send (void *cls, size_t size, void *buf)
879#if DEBUG_CORE 879#if DEBUG_CORE
880 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 880 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
881 "Size of clients message to peer %s is 0!\n", 881 "Size of clients message to peer %s is 0!\n",
882 GNUNET_i2s(&th->peer)); 882 GNUNET_i2s(&sm->peer));
883#endif 883#endif
884 /* client decided to send nothing! */ 884 /* client decided to send nothing! */
885 return 0; 885 return 0;
@@ -899,7 +899,7 @@ produce_send (void *cls, size_t size, void *buf)
899 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 899 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
900 "Preparing for P2P transmission of %u bytes to `%4s'.\n", 900 "Preparing for P2P transmission of %u bytes to `%4s'.\n",
901 dt, 901 dt,
902 GNUNET_i2s(&th->peer)); 902 GNUNET_i2s(&sm->peer));
903#endif 903#endif
904 sm->header.size = htons (dt + sizeof (struct SendMessage)); 904 sm->header.size = htons (dt + sizeof (struct SendMessage));
905 GNUNET_assert (dt + sizeof (struct SendMessage) <= size); 905 GNUNET_assert (dt + sizeof (struct SendMessage) <= size);