aboutsummaryrefslogtreecommitdiff
path: root/src/ats
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
parentc0696a21aebdb3a3961bece3cbbb3c307cd2ab29 (diff)
also compare peer identity
Diffstat (limited to 'src/ats')
-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 d00a39a8ae..57950b5a5c 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,
(GNUNET_NO == sh->session_array[i]->in_destroy) &&
( (session == sh->session_array[i]->session) ||
(NULL == sh->session_array[i]->session) ) &&
+ (0 == memcmp (&address->peer,
+ &sh->session_array[i]->address->peer,
+ sizeof (struct GNUNET_PeerIdentity))) &&
(0 == GNUNET_HELLO_address_cmp (address,
sh->session_array[i]->address)) )
return i;