From d09bb1a4e9fb25c31bf9058c7d61ccf3e376da85 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Tue, 9 Jul 2013 14:44:36 +0000 Subject: [PATCH] do not add or update if sessions are equal --- src/ats/gnunet-service-ats_addresses.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ats/gnunet-service-ats_addresses.c b/src/ats/gnunet-service-ats_addresses.c index fc578efd5..dfab0b182 100644 --- a/src/ats/gnunet-service-ats_addresses.c +++ b/src/ats/gnunet-service-ats_addresses.c @@ -871,6 +871,9 @@ GAS_addresses_add (struct GAS_Addresses_Handle *handle, GNUNET_free_non_null (atsi_delta); /* Notify solver about new session */ + if (existing_address->session_id == session_id) + return; /* possible, can both be 0 since address is revalidated */ + previous_session = existing_address->session_id; existing_address->session_id = session_id; handle->s_address_update_session (handle->solver, existing_address, -- 2.25.1