aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_udp.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2014-06-02 09:40:12 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2014-06-02 09:40:12 +0000
commit800c3b54ba9a67ad995d6b5c1ecbffe224f4676d (patch)
tree43347995315ca4cdd5b6d1a8dd2f0e7cf0a71134 /src/transport/plugin_transport_udp.c
parentda3d84fb0f3e5a681976b53d43275b2d9b401886 (diff)
downloadgnunet-800c3b54ba9a67ad995d6b5c1ecbffe224f4676d.tar.gz
gnunet-800c3b54ba9a67ad995d6b5c1ecbffe224f4676d.zip
fix semantic for address_to_string
Diffstat (limited to 'src/transport/plugin_transport_udp.c')
-rw-r--r--src/transport/plugin_transport_udp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c
index d1cfbc620..86751d4e5 100644
--- a/src/transport/plugin_transport_udp.c
+++ b/src/transport/plugin_transport_udp.c
@@ -749,7 +749,7 @@ append_port (void *cls, const char *hostname)
749 749
750 if (hostname == NULL ) 750 if (hostname == NULL )
751 { 751 {
752 ppc->asc (ppc->asc_cls, NULL ); 752 ppc->asc (ppc->asc_cls, NULL, GNUNET_OK); /* Final call, done */
753 GNUNET_CONTAINER_DLL_remove(ppc_dll_head, ppc_dll_tail, ppc); 753 GNUNET_CONTAINER_DLL_remove(ppc_dll_head, ppc_dll_tail, ppc);
754 GNUNET_SCHEDULER_cancel (ppc->timeout_task); 754 GNUNET_SCHEDULER_cancel (ppc->timeout_task);
755 ppc->timeout_task = GNUNET_SCHEDULER_NO_TASK; 755 ppc->timeout_task = GNUNET_SCHEDULER_NO_TASK;
@@ -758,13 +758,12 @@ append_port (void *cls, const char *hostname)
758 return; 758 return;
759 } 759 }
760 for (cur = ppc_dll_head; (NULL != cur); cur = cur->next) 760 for (cur = ppc_dll_head; (NULL != cur); cur = cur->next)
761 {
762 if (cur == ppc) 761 if (cur == ppc)
763 break; 762 break;
764 }
765 if (NULL == cur) 763 if (NULL == cur)
766 { 764 {
767 GNUNET_log(GNUNET_ERROR_TYPE_ERROR, "Invalid callback for PPC %p \n", ppc); 765 ppc->asc (ppc->asc_cls, NULL, GNUNET_SYSERR);
766 GNUNET_break(0);
768 return; 767 return;
769 } 768 }
770 769
@@ -774,7 +773,7 @@ append_port (void *cls, const char *hostname)
774 else 773 else
775 GNUNET_asprintf (&ret, "%s.%u.%s:%d", PLUGIN_NAME, ppc->options, hostname, 774 GNUNET_asprintf (&ret, "%s.%u.%s:%d", PLUGIN_NAME, ppc->options, hostname,
776 ppc->port); 775 ppc->port);
777 ppc->asc (ppc->asc_cls, ret); 776 ppc->asc (ppc->asc_cls, ret, GNUNET_OK);
778 GNUNET_free(ret); 777 GNUNET_free(ret);
779} 778}
780 779
@@ -847,7 +846,8 @@ udp_plugin_address_pretty_printer (void *cls,
847 { 846 {
848 /* invalid address */ 847 /* invalid address */
849 GNUNET_break_op(0); 848 GNUNET_break_op(0);
850 asc (asc_cls, NULL ); 849 asc (asc_cls, NULL , GNUNET_SYSERR);
850 asc (asc_cls, NULL, GNUNET_OK);
851 return; 851 return;
852 } 852 }
853 ppc = GNUNET_new (struct PrettyPrinterContext); 853 ppc = GNUNET_new (struct PrettyPrinterContext);