initialize 'client', so that disconnect can remove entry from DLL, may fix #3689
authorChristian Grothoff <christian@grothoff.org>
Sat, 28 Feb 2015 13:52:37 +0000 (13:52 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 28 Feb 2015 13:52:37 +0000 (13:52 +0000)
src/ats/gnunet-service-ats_preferences.c

index 1a862d60227f563013ff0534c5bbf9456981d480..9cee64b1dcd1806a2e29c90a17176689e9434531 100644 (file)
@@ -585,6 +585,7 @@ update_preference (struct GNUNET_SERVER_Client *client,
   if (NULL == c_cur)
   {
     c_cur = GNUNET_new (struct PreferenceClient);
+    c_cur->client = client;
     c_cur->peer2pref = GNUNET_CONTAINER_multipeermap_create (16,
                                                              GNUNET_NO);
     for (i = 0; i < GNUNET_ATS_PREFERENCE_END; i++)