diff options
author | Christian Fuchs <christian.fuchs@cfuchs.net> | 2013-09-11 17:06:04 +0000 |
---|---|---|
committer | Christian Fuchs <christian.fuchs@cfuchs.net> | 2013-09-11 17:06:04 +0000 |
commit | d6f94672c2e5ce0da942aaff9fab277176027656 (patch) | |
tree | 1475d64fd700c47448a0b58fdf0f5f65522ac354 /src/scalarproduct | |
parent | 361fb8f1f3f57d0fb47fa923fe8c813f5d0bb86e (diff) | |
download | gnunet-d6f94672c2e5ce0da942aaff9fab277176027656.tar.gz gnunet-d6f94672c2e5ce0da942aaff9fab277176027656.zip |
the key entry in GNUNET_SCALARPRODUCT_ComputationHandle is now a struct, not a pointer.
re-added scheduler shutdown to SP-client
Diffstat (limited to 'src/scalarproduct')
-rw-r--r-- | src/scalarproduct/gnunet-scalarproduct.c | 2 | ||||
-rw-r--r-- | src/scalarproduct/scalarproduct_api.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/scalarproduct/gnunet-scalarproduct.c b/src/scalarproduct/gnunet-scalarproduct.c index c32bfdaa1..7fe6cf75c 100644 --- a/src/scalarproduct/gnunet-scalarproduct.c +++ b/src/scalarproduct/gnunet-scalarproduct.c | |||
@@ -104,6 +104,7 @@ responder_callback (void *cls, | |||
104 | default: | 104 | default: |
105 | LOG (GNUNET_ERROR_TYPE_ERROR, "Session %s failed: return code %d\n", GNUNET_h2s (&closure->key), status); | 105 | LOG (GNUNET_ERROR_TYPE_ERROR, "Session %s failed: return code %d\n", GNUNET_h2s (&closure->key), status); |
106 | } | 106 | } |
107 | GNUNET_SCHEDULER_shutdown(); | ||
107 | } | 108 | } |
108 | 109 | ||
109 | 110 | ||
@@ -149,6 +150,7 @@ requester_callback (void *cls, | |||
149 | default: | 150 | default: |
150 | LOG (GNUNET_ERROR_TYPE_ERROR, "Session %s with peer %s failed: return code %d\n", GNUNET_h2s (&closure->key), GNUNET_i2s (&closure->peer), status); | 151 | LOG (GNUNET_ERROR_TYPE_ERROR, "Session %s with peer %s failed: return code %d\n", GNUNET_h2s (&closure->key), GNUNET_i2s (&closure->peer), status); |
151 | } | 152 | } |
153 | GNUNET_SCHEDULER_shutdown(); | ||
152 | } | 154 | } |
153 | 155 | ||
154 | /** | 156 | /** |
diff --git a/src/scalarproduct/scalarproduct_api.c b/src/scalarproduct/scalarproduct_api.c index 89cb4db17..95aaaf86a 100644 --- a/src/scalarproduct/scalarproduct_api.c +++ b/src/scalarproduct/scalarproduct_api.c | |||
@@ -78,7 +78,7 @@ struct GNUNET_SCALARPRODUCT_ComputationHandle | |||
78 | /** | 78 | /** |
79 | * The shared session key identifying this computation | 79 | * The shared session key identifying this computation |
80 | */ | 80 | */ |
81 | struct GNUNET_HashCode * key; | 81 | struct GNUNET_HashCode key; |
82 | 82 | ||
83 | /** | 83 | /** |
84 | * Current transmit handle. | 84 | * Current transmit handle. |
@@ -249,6 +249,7 @@ receive_cb (void *cls, const struct GNUNET_MessageHeader *msg) | |||
249 | if (qe->cont_datum != NULL) | 249 | if (qe->cont_datum != NULL) |
250 | qe->response_proc (qe, msg, status); | 250 | qe->response_proc (qe, msg, status); |
251 | 251 | ||
252 | GNUNET_CONTAINER_DLL_remove (head, tail, qe); | ||
252 | GNUNET_free (qe); | 253 | GNUNET_free (qe); |
253 | } | 254 | } |
254 | 255 | ||