convert non-ecc scalarproducts to new service API
[oweals/gnunet.git] / src / scalarproduct / gnunet-service-scalarproduct-ecc_bob.c
index f873b0e0597ab305c9ce652d7d0ea78d8e3c03f3..06e30706ec7e2c42d3775afa6d66584e0e34a749 100644 (file)
@@ -319,8 +319,10 @@ destroy_service_session (struct BobServiceSession *s)
   }
   if (NULL != s->client)
   {
-    GNUNET_SERVICE_client_drop (s->client);
+    struct GNUNET_SERVICE_Client *c = s->client;
+    
     s->client = NULL;
+    GNUNET_SERVICE_client_drop (c);
   }
   GNUNET_assert (GNUNET_YES ==
                  GNUNET_CONTAINER_multihashmap_remove (client_sessions,