From 9f1306d5dfa0dc54b2ba4e5b5ef00ee7a4f74587 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 23 Apr 2014 15:44:40 +0000 Subject: [PATCH] -fix (mostly harmless) use of uninitialized variable --- src/core/gnunet-service-core_sessions.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/core/gnunet-service-core_sessions.c b/src/core/gnunet-service-core_sessions.c index 66855769a..79a609566 100644 --- a/src/core/gnunet-service-core_sessions.c +++ b/src/core/gnunet-service-core_sessions.c @@ -500,16 +500,17 @@ GSC_SESSIONS_queue_request (struct GSC_ClientActiveRequest *car) void GSC_SESSIONS_dequeue_request (struct GSC_ClientActiveRequest *car) { - struct Session *s; + struct Session *session; if (0 == memcmp (&car->target, &GSC_my_identity, sizeof (struct GNUNET_PeerIdentity))) return; - s = find_session (&car->target); - GNUNET_assert (NULL != s); - GNUNET_CONTAINER_DLL_remove (s->active_client_request_head, - s->active_client_request_tail, car); + session = find_session (&car->target); + GNUNET_assert (NULL != session); + GNUNET_CONTAINER_DLL_remove (session->active_client_request_head, + session->active_client_request_tail, + car); } @@ -671,7 +672,11 @@ try_transmission (struct Session *session) return; } } - + else + { + /* never solicit more, we have critical messages to process */ + excess = GNUNET_NO; + } now = GNUNET_TIME_absolute_get (); if ( ( (GNUNET_YES == excess) || (maxpc >= GNUNET_CORE_PRIO_BEST_EFFORT) ) && -- 2.25.1