[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r29677 - gnunet/src/gns
From: |
gnunet |
Subject: |
[GNUnet-SVN] r29677 - gnunet/src/gns |
Date: |
Sun, 29 Sep 2013 16:30:09 +0200 |
Author: grothoff
Date: 2013-09-29 16:30:09 +0200 (Sun, 29 Sep 2013)
New Revision: 29677
Modified:
gnunet/src/gns/gns_api.c
Log:
-fix shutdown segv if GNS connection was down
Modified: gnunet/src/gns/gns_api.c
===================================================================
--- gnunet/src/gns/gns_api.c 2013-09-29 14:29:41 UTC (rev 29676)
+++ gnunet/src/gns/gns_api.c 2013-09-29 14:30:09 UTC (rev 29677)
@@ -474,7 +474,11 @@
void
GNUNET_GNS_disconnect (struct GNUNET_GNS_Handle *handle)
{
- GNUNET_CLIENT_disconnect (handle->client);
+ if (NULL != handle->client)
+ {
+ GNUNET_CLIENT_disconnect (handle->client);
+ handle->client = NULL;
+ }
if (GNUNET_SCHEDULER_NO_TASK != handle->reconnect_task)
{
GNUNET_SCHEDULER_cancel (handle->reconnect_task);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r29677 - gnunet/src/gns,
gnunet <=