aboutsummaryrefslogtreecommitdiff
path: root/src/psyc
diff options
context:
space:
mode:
Diffstat (limited to 'src/psyc')
-rw-r--r--src/psyc/psyc_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/psyc/psyc_api.c b/src/psyc/psyc_api.c
index ca72a44c0..f74930237 100644
--- a/src/psyc/psyc_api.c
+++ b/src/psyc/psyc_api.c
@@ -720,10 +720,10 @@ GNUNET_PSYC_master_start (const struct GNUNET_CONFIGURATION_Handle *cfg,
720 GNUNET_PSYC_MessagePartCallback message_part_cb, 720 GNUNET_PSYC_MessagePartCallback message_part_cb,
721 void *cls) 721 void *cls)
722{ 722{
723 struct GNUNET_PSYC_Master *mst = GNUNET_malloc (sizeof (*mst)); 723 struct GNUNET_PSYC_Master *mst = GNUNET_new (struct GNUNET_PSYC_Master);
724 struct GNUNET_PSYC_Channel *chn = &mst->chn; 724 struct GNUNET_PSYC_Channel *chn = &mst->chn;
725 struct MasterStartRequest *req;
725 726
726 struct MasterStartRequest *req = GNUNET_malloc (sizeof (*req));
727 chn->connect_env = GNUNET_MQ_msg (req, 727 chn->connect_env = GNUNET_MQ_msg (req,
728 GNUNET_MESSAGE_TYPE_PSYC_MASTER_START); 728 GNUNET_MESSAGE_TYPE_PSYC_MASTER_START);
729 req->channel_key = *channel_key; 729 req->channel_key = *channel_key;