aboutsummaryrefslogtreecommitdiff
path: root/src/social
diff options
context:
space:
mode:
authorlurchi <lurchi@strangeplace.net>2017-01-17 03:00:11 +0100
committerlurchi <lurchi@strangeplace.net>2017-01-17 03:00:11 +0100
commit9407ee77841b771e774d51eaa2916bceed047c86 (patch)
tree506e3ec99a043750869a32448c428fab191d3b2f /src/social
parent2082c4e146e914087e020fb863141eb2ad7b89e9 (diff)
downloadgnunet-9407ee77841b771e774d51eaa2916bceed047c86.tar.gz
gnunet-9407ee77841b771e774d51eaa2916bceed047c86.zip
More bugfixes to make gnunet-social usable
- the host's entry message is not ignored anymore - guest-talk and host-anounce are working
Diffstat (limited to 'src/social')
-rw-r--r--src/social/gnunet-social.c2
-rw-r--r--src/social/social_api.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/social/gnunet-social.c b/src/social/gnunet-social.c
index afd06028c..6d72ca552 100644
--- a/src/social/gnunet-social.c
+++ b/src/social/gnunet-social.c
@@ -360,7 +360,7 @@ notify_data (void *cls, uint16_t *data_size, void *data)
360 360
361 if (0 == tmit->size) 361 if (0 == tmit->size)
362 { 362 {
363 if (op_host_announce || op_host_assign || op_guest_talk) 363 if ((op_host_announce || op_host_assign || op_guest_talk) && !opt_follow)
364 { 364 {
365 exit_success (); 365 exit_success ();
366 } 366 }
diff --git a/src/social/social_api.c b/src/social/social_api.c
index d96c93d8f..82928a258 100644
--- a/src/social/social_api.c
+++ b/src/social/social_api.c
@@ -893,7 +893,7 @@ handle_guest_enter_decision (void *cls,
893 struct GNUNET_SOCIAL_Guest *gst = cls; 893 struct GNUNET_SOCIAL_Guest *gst = cls;
894 894
895 struct GNUNET_PSYC_Message *pmsg = NULL; 895 struct GNUNET_PSYC_Message *pmsg = NULL;
896 if (ntohs (dcsn->header.size) <= sizeof (*dcsn) + sizeof (*pmsg)) 896 if (ntohs (dcsn->header.size) > sizeof (*dcsn))
897 pmsg = (struct GNUNET_PSYC_Message *) GNUNET_MQ_extract_nested_mh (dcsn); 897 pmsg = (struct GNUNET_PSYC_Message *) GNUNET_MQ_extract_nested_mh (dcsn);
898 898
899 if (NULL != gst->entry_dcsn_cb) 899 if (NULL != gst->entry_dcsn_cb)