diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-12-16 20:13:31 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-12-16 20:13:31 +0000 |
commit | f1c5398dc177d04abbc29572cad70fc5c5fa9eb7 (patch) | |
tree | a1987da3d27e4d1b4bf01ca6fd77f5aa057bc04b /src/set/gnunet-service-set_union.c | |
parent | 6afa2333a24ae8b8bc31ce48faf73119f1b12719 (diff) | |
download | gnunet-f1c5398dc177d04abbc29572cad70fc5c5fa9eb7.tar.gz gnunet-f1c5398dc177d04abbc29572cad70fc5c5fa9eb7.zip |
-fix bus error
Diffstat (limited to 'src/set/gnunet-service-set_union.c')
-rw-r--r-- | src/set/gnunet-service-set_union.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/set/gnunet-service-set_union.c b/src/set/gnunet-service-set_union.c index 0de2ed939..4b06fbcc5 100644 --- a/src/set/gnunet-service-set_union.c +++ b/src/set/gnunet-service-set_union.c | |||
@@ -874,10 +874,13 @@ decode_and_send (struct Operation *op) | |||
874 | 874 | ||
875 | /* It may be nice to merge multiple requests, but with cadet's corking it is not worth | 875 | /* It may be nice to merge multiple requests, but with cadet's corking it is not worth |
876 | * the effort additional complexity. */ | 876 | * the effort additional complexity. */ |
877 | ev = GNUNET_MQ_msg_header_extra (msg, sizeof (struct IBF_Key), | 877 | ev = GNUNET_MQ_msg_header_extra (msg, |
878 | GNUNET_MESSAGE_TYPE_SET_P2P_ELEMENT_REQUESTS); | 878 | sizeof (struct IBF_Key), |
879 | GNUNET_MESSAGE_TYPE_SET_P2P_ELEMENT_REQUESTS); | ||
879 | 880 | ||
880 | *(struct IBF_Key *) &msg[1] = key; | 881 | memcpy (&msg[1], |
882 | &key, | ||
883 | sizeof (struct IBF_Key)); | ||
881 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 884 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
882 | "sending element request\n"); | 885 | "sending element request\n"); |
883 | GNUNET_MQ_send (op->mq, ev); | 886 | GNUNET_MQ_send (op->mq, ev); |