aboutsummaryrefslogtreecommitdiff
path: root/src/social/gnunet-service-social.c
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2016-05-12 00:21:25 +0000
committerGabor X Toth <*@tg-x.net>2016-05-12 00:21:25 +0000
commit9ced7c72a9acfe9c99b4d2f07bb81e11a1a23707 (patch)
tree39049d5e856ce39a71fa93d0bf68b009d5658095 /src/social/gnunet-service-social.c
parentd22568f1f9147e3d8ea96f2c4592985702b2eab9 (diff)
psyc/social: transmit fix
Diffstat (limited to 'src/social/gnunet-service-social.c')
-rw-r--r--src/social/gnunet-service-social.c26
1 files changed, 16 insertions, 10 deletions
diff --git a/src/social/gnunet-service-social.c b/src/social/gnunet-service-social.c
index 8dd51e6103..c379ff76bd 100644
--- a/src/social/gnunet-service-social.c
+++ b/src/social/gnunet-service-social.c
@@ -2666,11 +2666,14 @@ psyc_master_transmit_message (struct Host *hst)
if (NULL == pmeth)
return GNUNET_SYSERR;
- hst->tmit_handle
- = GNUNET_PSYC_master_transmit (hst->master, (const char *) &pmeth[1],
- &host_transmit_notify_mod,
- &host_transmit_notify_data, hst,
- pmeth->flags);
+ hst->tmit_handle = (void *) &hst->tmit_handle;
+ struct GNUNET_PSYC_MasterTransmitHandle *
+ tmit_handle = GNUNET_PSYC_master_transmit (hst->master, (const char *) &pmeth[1],
+ &host_transmit_notify_mod,
+ &host_transmit_notify_data, hst,
+ pmeth->flags);
+ if (NULL != hst->tmit_handle)
+ hst->tmit_handle = tmit_handle;
GNUNET_free (pmeth);
}
else
@@ -2696,11 +2699,14 @@ psyc_slave_transmit_message (struct Guest *gst)
if (NULL == pmeth)
return GNUNET_SYSERR;
- gst->tmit_handle
- = GNUNET_PSYC_slave_transmit (gst->slave, (const char *) &pmeth[1],
- &guest_transmit_notify_mod,
- &guest_transmit_notify_data, gst,
- pmeth->flags);
+ gst->tmit_handle = (void *) &gst->tmit_handle;
+ struct GNUNET_PSYC_SlaveTransmitHandle *
+ tmit_handle = GNUNET_PSYC_slave_transmit (gst->slave, (const char *) &pmeth[1],
+ &guest_transmit_notify_mod,
+ &guest_transmit_notify_data, gst,
+ pmeth->flags);
+ if (NULL != gst->tmit_handle)
+ gst->tmit_handle = tmit_handle;
GNUNET_free (pmeth);
}
else