diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-02-01 14:18:19 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-02-01 14:18:19 +0000 |
commit | ecae86c5118d3e3c54ab06e15bb395ccca1e8168 (patch) | |
tree | f5cc40956cb108818954f76b3c15d289c9cd319f /src/transport/plugin_transport_udp.c | |
parent | 42a0353260b0f1cf7f7d00f47399bfbc53e34bad (diff) | |
download | gnunet-ecae86c5118d3e3c54ab06e15bb395ccca1e8168.tar.gz gnunet-ecae86c5118d3e3c54ab06e15bb395ccca1e8168.zip |
coverity fixes
Diffstat (limited to 'src/transport/plugin_transport_udp.c')
-rw-r--r-- | src/transport/plugin_transport_udp.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index 5a3e92e1e..7f3566c59 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c | |||
@@ -165,6 +165,8 @@ static int | |||
165 | udp_transport_server_stop (void *cls) | 165 | udp_transport_server_stop (void *cls) |
166 | { | 166 | { |
167 | struct Plugin *plugin = cls; | 167 | struct Plugin *plugin = cls; |
168 | int ret; | ||
169 | |||
168 | GNUNET_assert (udp_sock != NULL); | 170 | GNUNET_assert (udp_sock != NULL); |
169 | if (plugin->select_task != GNUNET_SCHEDULER_NO_TASK) | 171 | if (plugin->select_task != GNUNET_SCHEDULER_NO_TASK) |
170 | { | 172 | { |
@@ -172,9 +174,10 @@ udp_transport_server_stop (void *cls) | |||
172 | plugin->select_task = GNUNET_SCHEDULER_NO_TASK; | 174 | plugin->select_task = GNUNET_SCHEDULER_NO_TASK; |
173 | } | 175 | } |
174 | 176 | ||
175 | GNUNET_NETWORK_socket_close (udp_sock); | 177 | ret = GNUNET_NETWORK_socket_close (udp_sock); |
176 | udp_sock = NULL; | 178 | if (ret != GNUNET_SYSERR) |
177 | return GNUNET_OK; | 179 | udp_sock = NULL; |
180 | return ret; | ||
178 | } | 181 | } |
179 | 182 | ||
180 | /** | 183 | /** |