aboutsummaryrefslogtreecommitdiff
path: root/src/ats/ats_api_scheduling.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-05-18 18:49:34 +0000
committerChristian Grothoff <christian@grothoff.org>2015-05-18 18:49:34 +0000
commit2da23d3682af88953186cc36b68e36ef04d4a7f0 (patch)
treeac2fd0888b3fb3ccf3a6f58452f7fa25bf2656d7 /src/ats/ats_api_scheduling.c
parentc0696a21aebdb3a3961bece3cbbb3c307cd2ab29 (diff)
downloadgnunet-2da23d3682af88953186cc36b68e36ef04d4a7f0.tar.gz
gnunet-2da23d3682af88953186cc36b68e36ef04d4a7f0.zip
also compare peer identity
Diffstat (limited to 'src/ats/ats_api_scheduling.c')
-rw-r--r--src/ats/ats_api_scheduling.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ats/ats_api_scheduling.c b/src/ats/ats_api_scheduling.c
index d00a39a8a..57950b5a5 100644
--- a/src/ats/ats_api_scheduling.c
+++ b/src/ats/ats_api_scheduling.c
@@ -310,6 +310,9 @@ find_session_id (struct GNUNET_ATS_SchedulingHandle *sh,
310 (GNUNET_NO == sh->session_array[i]->in_destroy) && 310 (GNUNET_NO == sh->session_array[i]->in_destroy) &&
311 ( (session == sh->session_array[i]->session) || 311 ( (session == sh->session_array[i]->session) ||
312 (NULL == sh->session_array[i]->session) ) && 312 (NULL == sh->session_array[i]->session) ) &&
313 (0 == memcmp (&address->peer,
314 &sh->session_array[i]->address->peer,
315 sizeof (struct GNUNET_PeerIdentity))) &&
313 (0 == GNUNET_HELLO_address_cmp (address, 316 (0 == GNUNET_HELLO_address_cmp (address,
314 sh->session_array[i]->address)) ) 317 sh->session_array[i]->address)) )
315 return i; 318 return i;