aboutsummaryrefslogtreecommitdiff
path: root/src/util/connection.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-05-25 10:19:31 +0000
committerChristian Grothoff <christian@grothoff.org>2011-05-25 10:19:31 +0000
commitacd5a863d4092349cea5ba19c1567d911ed93189 (patch)
treefd753a426aa7f0fe4db17d713ef62d6a15efa694 /src/util/connection.c
parentf84694bdaec12d291af8739bfc2ec1b36e73918f (diff)
downloadgnunet-acd5a863d4092349cea5ba19c1567d911ed93189.tar.gz
gnunet-acd5a863d4092349cea5ba19c1567d911ed93189.zip
warn if this happens
Diffstat (limited to 'src/util/connection.c')
-rw-r--r--src/util/connection.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util/connection.c b/src/util/connection.c
index 7828dac53..9769c3cba 100644
--- a/src/util/connection.c
+++ b/src/util/connection.c
@@ -1630,7 +1630,10 @@ GNUNET_CONNECTION_notify_transmit_ready (struct GNUNET_CONNECTION_Handle
1630 notify, void *notify_cls) 1630 notify, void *notify_cls)
1631{ 1631{
1632 if (sock->nth.notify_ready != NULL) 1632 if (sock->nth.notify_ready != NULL)
1633 return NULL; 1633 {
1634 GNUNET_break (0);
1635 return NULL;
1636 }
1634 GNUNET_assert (notify != NULL); 1637 GNUNET_assert (notify != NULL);
1635 GNUNET_assert (size < GNUNET_SERVER_MAX_MESSAGE_SIZE); 1638 GNUNET_assert (size < GNUNET_SERVER_MAX_MESSAGE_SIZE);
1636 GNUNET_assert (sock->write_buffer_off <= sock->write_buffer_size); 1639 GNUNET_assert (sock->write_buffer_off <= sock->write_buffer_size);