aboutsummaryrefslogtreecommitdiff
path: root/src/identity
diff options
context:
space:
mode:
Diffstat (limited to 'src/identity')
-rw-r--r--src/identity/identity_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/identity/identity_api.c b/src/identity/identity_api.c
index 3323fe6fc..2b4ed465b 100644
--- a/src/identity/identity_api.c
+++ b/src/identity/identity_api.c
@@ -952,7 +952,7 @@ GNUNET_IDENTITY_disconnect (struct GNUNET_IDENTITY_Handle *h)
952 struct GNUNET_IDENTITY_Operation *op; 952 struct GNUNET_IDENTITY_Operation *op;
953 953
954 GNUNET_assert (NULL != h); 954 GNUNET_assert (NULL != h);
955 while (NULL != (op = h->op_head)) 955 while ((NULL != (op = h->op_head) && (NULL != op->next)))
956 GNUNET_IDENTITY_cancel (op); 956 GNUNET_IDENTITY_cancel (op);
957 if (h->reconnect_task != GNUNET_SCHEDULER_NO_TASK) 957 if (h->reconnect_task != GNUNET_SCHEDULER_NO_TASK)
958 { 958 {