diff options
author | LRN <lrn1986@gmail.com> | 2013-09-14 23:48:35 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2013-09-14 23:48:35 +0000 |
commit | a005768848df59c4535bf83f8452d3b0b54baace (patch) | |
tree | 1ff3486571e04ab7e16259bac5e2a79702efefc3 /src/identity/identity_api.c | |
parent | 64bae9a691d6e95ebd609495431323e596f22f9d (diff) | |
download | gnunet-a005768848df59c4535bf83f8452d3b0b54baace.tar.gz gnunet-a005768848df59c4535bf83f8452d3b0b54baace.zip |
Don't go into infinite loop once only uncancellable head is left
Diffstat (limited to 'src/identity/identity_api.c')
-rw-r--r-- | src/identity/identity_api.c | 2 |
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 | { |