diff options
author | Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de> | 2018-01-10 04:29:06 +0100 |
---|---|---|
committer | Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de> | 2018-01-10 04:29:06 +0100 |
commit | 16f04cf4fb1a7b489b3672d19818ffd1fd8d57f1 (patch) | |
tree | ad5072542ecfe966caa3e1927e90e81b103c3d35 /src/identity | |
parent | 5e233bcb4b48593af84c551738369fe89bc77251 (diff) | |
download | gnunet-16f04cf4fb1a7b489b3672d19818ffd1fd8d57f1.tar.gz gnunet-16f04cf4fb1a7b489b3672d19818ffd1fd8d57f1.zip |
fix scheduler when add_select is called with 0 ready fds
Diffstat (limited to 'src/identity')
-rw-r--r-- | src/identity/plugin_rest_identity.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/identity/plugin_rest_identity.c b/src/identity/plugin_rest_identity.c index 33804143d..6044d0641 100644 --- a/src/identity/plugin_rest_identity.c +++ b/src/identity/plugin_rest_identity.c | |||
@@ -241,7 +241,10 @@ cleanup_handle (struct RequestHandle *handle) | |||
241 | if (NULL != handle->name) | 241 | if (NULL != handle->name) |
242 | GNUNET_free (handle->name); | 242 | GNUNET_free (handle->name); |
243 | if (NULL != handle->timeout_task) | 243 | if (NULL != handle->timeout_task) |
244 | { | ||
244 | GNUNET_SCHEDULER_cancel (handle->timeout_task); | 245 | GNUNET_SCHEDULER_cancel (handle->timeout_task); |
246 | handle->timeout_task = NULL; | ||
247 | } | ||
245 | if (NULL != handle->identity_handle) | 248 | if (NULL != handle->identity_handle) |
246 | GNUNET_IDENTITY_disconnect (handle->identity_handle); | 249 | GNUNET_IDENTITY_disconnect (handle->identity_handle); |
247 | if (NULL != handle->subsys) | 250 | if (NULL != handle->subsys) |