diff options
Diffstat (limited to 'src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c')
-rw-r--r-- | src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c b/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c index 43a25a08d..fe27067e8 100644 --- a/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c +++ b/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c | |||
@@ -850,7 +850,11 @@ client_request_complete_alice (struct AliceServiceSession *s) | |||
850 | { | 850 | { |
851 | struct EccServiceRequestMessage *msg; | 851 | struct EccServiceRequestMessage *msg; |
852 | struct GNUNET_MQ_Envelope *e; | 852 | struct GNUNET_MQ_Envelope *e; |
853 | struct GNUNET_HashCode set_sid; | ||
853 | 854 | ||
855 | GNUNET_CRYPTO_hash (&s->session_id, | ||
856 | sizeof (struct GNUNET_HashCode), | ||
857 | &set_sid); | ||
854 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 858 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
855 | "Creating new channel for session with key %s.\n", | 859 | "Creating new channel for session with key %s.\n", |
856 | GNUNET_h2s (&s->session_id)); | 860 | GNUNET_h2s (&s->session_id)); |
@@ -858,7 +862,7 @@ client_request_complete_alice (struct AliceServiceSession *s) | |||
858 | = GNUNET_CADET_channel_create (my_cadet, | 862 | = GNUNET_CADET_channel_create (my_cadet, |
859 | s, | 863 | s, |
860 | &s->peer, | 864 | &s->peer, |
861 | GC_u2h (GNUNET_APPLICATION_TYPE_SCALARPRODUCT_ECC), | 865 | &s->session_id, |
862 | GNUNET_CADET_OPTION_RELIABLE); | 866 | GNUNET_CADET_OPTION_RELIABLE); |
863 | if (NULL == s->channel) | 867 | if (NULL == s->channel) |
864 | { | 868 | { |
@@ -870,7 +874,7 @@ client_request_complete_alice (struct AliceServiceSession *s) | |||
870 | s->intersection_listen | 874 | s->intersection_listen |
871 | = GNUNET_SET_listen (cfg, | 875 | = GNUNET_SET_listen (cfg, |
872 | GNUNET_SET_OPERATION_INTERSECTION, | 876 | GNUNET_SET_OPERATION_INTERSECTION, |
873 | &s->session_id, | 877 | &set_sid, |
874 | &cb_intersection_request_alice, | 878 | &cb_intersection_request_alice, |
875 | s); | 879 | s); |
876 | if (NULL == s->intersection_listen) | 880 | if (NULL == s->intersection_listen) |