aboutsummaryrefslogtreecommitdiff
path: root/src/ats
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-28 13:52:37 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-28 13:52:37 +0000
commit9e1a2064325b026198005dc050923f939d510d41 (patch)
treeb1cf09c56c37749b8d0c18e0deb6804221ee8b42 /src/ats
parentd14f16987fb2e919c72ac20ff77857e57edaec33 (diff)
downloadgnunet-9e1a2064325b026198005dc050923f939d510d41.tar.gz
gnunet-9e1a2064325b026198005dc050923f939d510d41.zip
initialize 'client', so that disconnect can remove entry from DLL, may fix #3689
Diffstat (limited to 'src/ats')
-rw-r--r--src/ats/gnunet-service-ats_preferences.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ats/gnunet-service-ats_preferences.c b/src/ats/gnunet-service-ats_preferences.c
index 1a862d602..9cee64b1d 100644
--- a/src/ats/gnunet-service-ats_preferences.c
+++ b/src/ats/gnunet-service-ats_preferences.c
@@ -585,6 +585,7 @@ update_preference (struct GNUNET_SERVER_Client *client,
585 if (NULL == c_cur) 585 if (NULL == c_cur)
586 { 586 {
587 c_cur = GNUNET_new (struct PreferenceClient); 587 c_cur = GNUNET_new (struct PreferenceClient);
588 c_cur->client = client;
588 c_cur->peer2pref = GNUNET_CONTAINER_multipeermap_create (16, 589 c_cur->peer2pref = GNUNET_CONTAINER_multipeermap_create (16,
589 GNUNET_NO); 590 GNUNET_NO);
590 for (i = 0; i < GNUNET_ATS_PREFERENCE_END; i++) 591 for (i = 0; i < GNUNET_ATS_PREFERENCE_END; i++)