diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-07-15 08:42:22 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-07-15 08:42:22 +0000 |
commit | 7ceb954a888d5a844b434e4bdd5c4a034a2d7676 (patch) | |
tree | 5e135809e0ff4929df53563524254534d874805c /src/transport/plugin_transport_udp.c | |
parent | 133ba848217e8509aeaec958f0decd03a05c192e (diff) | |
download | gnunet-7ceb954a888d5a844b434e4bdd5c4a034a2d7676.tar.gz gnunet-7ceb954a888d5a844b434e4bdd5c4a034a2d7676.zip |
fix
Diffstat (limited to 'src/transport/plugin_transport_udp.c')
-rw-r--r-- | src/transport/plugin_transport_udp.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index 0b16d2466..183331092 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c | |||
@@ -966,11 +966,13 @@ udp_plugin_select (void *cls, | |||
966 | plugin->select_task = GNUNET_SCHEDULER_NO_TASK; | 966 | plugin->select_task = GNUNET_SCHEDULER_NO_TASK; |
967 | if ( (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0) | 967 | if ( (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0) |
968 | return; | 968 | return; |
969 | if (GNUNET_NETWORK_fdset_isset (tc->read_ready, | 969 | if ( (NULL != plugin->sockv4) && |
970 | plugin->sockv4)) | 970 | (GNUNET_NETWORK_fdset_isset (tc->read_ready, |
971 | plugin->sockv4)) ) | ||
971 | udp_read (plugin, plugin->sockv4); | 972 | udp_read (plugin, plugin->sockv4); |
972 | if (GNUNET_NETWORK_fdset_isset (tc->read_ready, | 973 | if ( (NULL != plugin->sockv6) && |
973 | plugin->sockv6)) | 974 | (GNUNET_NETWORK_fdset_isset (tc->read_ready, |
975 | plugin->sockv6)) ) | ||
974 | udp_read (plugin, plugin->sockv6); | 976 | udp_read (plugin, plugin->sockv6); |
975 | plugin->select_task = | 977 | plugin->select_task = |
976 | GNUNET_SCHEDULER_add_select (GNUNET_SCHEDULER_PRIORITY_DEFAULT, | 978 | GNUNET_SCHEDULER_add_select (GNUNET_SCHEDULER_PRIORITY_DEFAULT, |