[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r21197 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r21197 - gnunet/src/transport |
Date: |
Fri, 27 Apr 2012 14:21:33 +0200 |
Author: wachs
Date: 2012-04-27 14:21:33 +0200 (Fri, 27 Apr 2012)
New Revision: 21197
Modified:
gnunet/src/transport/plugin_transport_unix.c
Log:
- invalid read when socket is already bound
Modified: gnunet/src/transport/plugin_transport_unix.c
===================================================================
--- gnunet/src/transport/plugin_transport_unix.c 2012-04-27 10:07:01 UTC
(rev 21196)
+++ gnunet/src/transport/plugin_transport_unix.c 2012-04-27 12:21:33 UTC
(rev 21197)
@@ -321,10 +321,13 @@
plugin->select_task = GNUNET_SCHEDULER_NO_TASK;
}
- GNUNET_break (GNUNET_OK ==
- GNUNET_NETWORK_socket_close (plugin->unix_sock.desc));
- plugin->unix_sock.desc = NULL;
- plugin->with_ws = GNUNET_NO;
+ if (NULL != plugin->unix_sock.desc)
+ {
+ GNUNET_break (GNUNET_OK ==
+ GNUNET_NETWORK_socket_close (plugin->unix_sock.desc));
+ plugin->unix_sock.desc = NULL;
+ plugin->with_ws = GNUNET_NO;
+ }
return GNUNET_OK;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r21197 - gnunet/src/transport,
gnunet <=