projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42a0353
)
coverity fixes
author
Nathan S. Evans
<evans@in.tum.de>
Mon, 1 Feb 2010 14:18:19 +0000
(14:18 +0000)
committer
Nathan S. Evans
<evans@in.tum.de>
Mon, 1 Feb 2010 14:18:19 +0000
(14:18 +0000)
src/transport/plugin_transport_udp.c
patch
|
blob
|
history
diff --git
a/src/transport/plugin_transport_udp.c
b/src/transport/plugin_transport_udp.c
index 5a3e92e1e5dce6ada7e331829bd9a08370d3311d..7f3566c59a1895d019609e43fe2ceb63cb6334e0 100644
(file)
--- a/
src/transport/plugin_transport_udp.c
+++ b/
src/transport/plugin_transport_udp.c
@@
-165,6
+165,8
@@
static int
udp_transport_server_stop (void *cls)
{
struct Plugin *plugin = cls;
+ int ret;
+
GNUNET_assert (udp_sock != NULL);
if (plugin->select_task != GNUNET_SCHEDULER_NO_TASK)
{
@@
-172,9
+174,10
@@
udp_transport_server_stop (void *cls)
plugin->select_task = GNUNET_SCHEDULER_NO_TASK;
}
- GNUNET_NETWORK_socket_close (udp_sock);
- udp_sock = NULL;
- return GNUNET_OK;
+ ret = GNUNET_NETWORK_socket_close (udp_sock);
+ if (ret != GNUNET_SYSERR)
+ udp_sock = NULL;
+ return ret;
}
/**