[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] 10/11: Fix open port, copy handlers for use on inc
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] 10/11: Fix open port, copy handlers for use on incoming channels |
Date: |
Wed, 08 Feb 2017 19:44:38 +0100 |
This is an automated email from the git hooks/post-receive script.
bart-polot pushed a commit to branch master
in repository gnunet.
commit ec05b7e9cef7322f3291c96c278056f387ba574b
Author: Bart Polot <address@hidden>
AuthorDate: Wed Feb 8 19:41:41 2017 +0100
Fix open port, copy handlers for use on incoming channels
---
src/cadet/cadet_api.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/src/cadet/cadet_api.c b/src/cadet/cadet_api.c
index e20796d17..7b9ac62b3 100644
--- a/src/cadet/cadet_api.c
+++ b/src/cadet/cadet_api.c
@@ -2538,7 +2538,16 @@ GNUNET_CADET_open_porT (struct GNUNET_CADET_Handle *h,
p->cls = connects_cls;
p->window_changes = window_changes;
p->disconnects = disconnects;
- p->handlers = handlers;
+ if (NULL != handlers)
+ {
+ unsigned int i;
+ for (i=0;NULL != handlers[i].cb; i++) ;
+ p->handlers = GNUNET_new_array (i + 1,
+ struct GNUNET_MQ_MessageHandler);
+ GNUNET_memcpy ((struct GNUNET_MQ_MessageHandler *) p->handlers,
+ handlers,
+ i * sizeof (struct GNUNET_MQ_MessageHandler));
+ }
GNUNET_assert (GNUNET_OK ==
GNUNET_CONTAINER_multihashmap_put (h->ports,
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnunet] branch master updated (d00b72f57 -> a03d291e3), gnunet, 2017/02/08
- [GNUnet-SVN] [gnunet] 03/11: Merge branch 'master' of git+ssh://gnunet.org/gnunet, gnunet, 2017/02/08
- [GNUnet-SVN] [gnunet] 04/11: - doxygen, debug text, gnunet, 2017/02/08
- [GNUnet-SVN] [gnunet] 01/11: Implement data ack in CADET MQ API, gnunet, 2017/02/08
- [GNUnet-SVN] [gnunet] 07/11: - debug, indentation, legibility, gnunet, 2017/02/08
- [GNUnet-SVN] [gnunet] 05/11: - fix assertion condition, gnunet, 2017/02/08
- [GNUnet-SVN] [gnunet] 06/11: fix cadet mq api, use proper function arguments, gnunet, 2017/02/08
- [GNUnet-SVN] [gnunet] 02/11: Only call window_size on incrementing size, allow ACK+1 messages to be taken, gnunet, 2017/02/08
- [GNUnet-SVN] [gnunet] 08/11: - code/debug format, gnunet, 2017/02/08
- [GNUnet-SVN] [gnunet] 09/11: - adjust FWD/BCK to new channel numbering, gnunet, 2017/02/08
- [GNUnet-SVN] [gnunet] 10/11: Fix open port, copy handlers for use on incoming channels,
gnunet <=
- [GNUnet-SVN] [gnunet] 11/11: Add mq test, gnunet, 2017/02/08