diff options
Diffstat (limited to 'src/cadet/cadet_api.c')
-rw-r--r-- | src/cadet/cadet_api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cadet/cadet_api.c b/src/cadet/cadet_api.c index 45cb66c1d..45cc508a6 100644 --- a/src/cadet/cadet_api.c +++ b/src/cadet/cadet_api.c | |||
@@ -819,7 +819,7 @@ GNUNET_CADET_close_port (struct GNUNET_CADET_Port *p) | |||
819 | msg->port = p->id; | 819 | msg->port = p->id; |
820 | GNUNET_MQ_send (p->cadet->mq, env); | 820 | GNUNET_MQ_send (p->cadet->mq, env); |
821 | } | 821 | } |
822 | GNUNET_free_non_null (p->handlers); | 822 | GNUNET_free (p->handlers); |
823 | GNUNET_free (p); | 823 | GNUNET_free (p); |
824 | } | 824 | } |
825 | 825 | ||
@@ -1001,8 +1001,8 @@ GNUNET_CADET_open_port (struct GNUNET_CADET_Handle *h, | |||
1001 | p->window_changes = window_changes; | 1001 | p->window_changes = window_changes; |
1002 | p->disconnects = disconnects; | 1002 | p->disconnects = disconnects; |
1003 | p->handlers = (NULL == pd->agpl_url) | 1003 | p->handlers = (NULL == pd->agpl_url) |
1004 | ? GNUNET_MQ_copy_handlers (handlers) | 1004 | ? GNUNET_MQ_copy_handlers (handlers) |
1005 | : GNUNET_MQ_copy_handlers2 (handlers, &return_agpl, NULL); | 1005 | : GNUNET_MQ_copy_handlers2 (handlers, &return_agpl, NULL); |
1006 | 1006 | ||
1007 | GNUNET_assert (GNUNET_OK == open_port_cb (h, &p->id, p)); | 1007 | GNUNET_assert (GNUNET_OK == open_port_cb (h, &p->id, p)); |
1008 | return p; | 1008 | return p; |