the key entry in GNUNET_SCALARPRODUCT_ComputationHandle is now a struct, not a pointer.
authorChristian Fuchs <christian.fuchs@cfuchs.net>
Wed, 11 Sep 2013 17:06:04 +0000 (17:06 +0000)
committerChristian Fuchs <christian.fuchs@cfuchs.net>
Wed, 11 Sep 2013 17:06:04 +0000 (17:06 +0000)
re-added scheduler shutdown to SP-client

src/scalarproduct/gnunet-scalarproduct.c
src/scalarproduct/scalarproduct_api.c

index c32bfdaa1810f2549aaae6e93d4be87ebd8e27c3..7fe6cf75cbdff0efee1dab3b8087232afd017244 100644 (file)
@@ -104,6 +104,7 @@ responder_callback (void *cls,
   default:
     LOG (GNUNET_ERROR_TYPE_ERROR, "Session %s failed: return code %d\n", GNUNET_h2s (&closure->key), status);
   }
+  GNUNET_SCHEDULER_shutdown();
 }
 
 
@@ -149,6 +150,7 @@ requester_callback (void *cls,
   default:
     LOG (GNUNET_ERROR_TYPE_ERROR, "Session %s with peer %s failed: return code %d\n", GNUNET_h2s (&closure->key), GNUNET_i2s (&closure->peer), status);
   }
+  GNUNET_SCHEDULER_shutdown();
 }
 
 /**
index 89cb4db1752a1fb39e31f564966dcef8e397451e..95aaaf86a85640f4bebd177c54fab7839183839f 100644 (file)
@@ -78,7 +78,7 @@ struct GNUNET_SCALARPRODUCT_ComputationHandle
   /**
    * The shared session key identifying this computation
    */
-  struct GNUNET_HashCode key;
+  struct GNUNET_HashCode key;
 
   /**
    * Current transmit handle.
@@ -249,6 +249,7 @@ receive_cb (void *cls, const struct GNUNET_MessageHeader *msg)
   if (qe->cont_datum != NULL)
     qe->response_proc (qe, msg, status);
 
+  GNUNET_CONTAINER_DLL_remove (head, tail, qe);
   GNUNET_free (qe);
 }