aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_udp.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-07-26 17:00:26 +0000
committerChristian Grothoff <christian@grothoff.org>2010-07-26 17:00:26 +0000
commitd59845e6e275fda673354f24ba5bfaf412eb08da (patch)
treeecae62df0bb140d483d22e1cbef153eda9e68780 /src/transport/plugin_transport_udp.c
parent18e8e8d4973f01e578c1de7dc2eb6422f1abf592 (diff)
downloadgnunet-d59845e6e275fda673354f24ba5bfaf412eb08da.tar.gz
gnunet-d59845e6e275fda673354f24ba5bfaf412eb08da.zip
bugfix
Diffstat (limited to 'src/transport/plugin_transport_udp.c')
-rw-r--r--src/transport/plugin_transport_udp.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c
index 5dbb94bcb..5b5aaf882 100644
--- a/src/transport/plugin_transport_udp.c
+++ b/src/transport/plugin_transport_udp.c
@@ -762,6 +762,8 @@ udp_plugin_send (void *cls,
762 int other_peer_natd; 762 int other_peer_natd;
763 const struct IPv4UdpAddress *t4; 763 const struct IPv4UdpAddress *t4;
764 764
765 if (force_address == GNUNET_SYSERR)
766 return GNUNET_SYSERR;
765 GNUNET_assert (NULL == session); 767 GNUNET_assert (NULL == session);
766 768
767 other_peer_natd = GNUNET_NO; 769 other_peer_natd = GNUNET_NO;
@@ -1439,8 +1441,10 @@ udp_demultiplexer(struct Plugin *plugin, struct GNUNET_PeerIdentity *sender,
1439 break; 1441 break;
1440 default: 1442 default:
1441#if DEBUG_UDP 1443#if DEBUG_UDP
1442 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1444 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG,
1443 _("Sending message type %d to transport!\n"), ntohs(currhdr->type)); 1445 "udp",
1446 "Sending message type %d to transport!\n",
1447 ntohs(currhdr->type));
1444#endif 1448#endif
1445 plugin->env->receive (plugin->env->cls, sender, currhdr, UDP_DIRECT_DISTANCE, 1449 plugin->env->receive (plugin->env->cls, sender, currhdr, UDP_DIRECT_DISTANCE,
1446 NULL, sender_addr, fromlen); 1450 NULL, sender_addr, fromlen);