diff options
-rw-r--r-- | src/gnunet_chat_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gnunet_chat_lib.c b/src/gnunet_chat_lib.c index 3010ff4..2e797bf 100644 --- a/src/gnunet_chat_lib.c +++ b/src/gnunet_chat_lib.c | |||
@@ -1077,7 +1077,7 @@ GNUNET_CHAT_group_invite_contact (const struct GNUNET_CHAT_Group *group, | |||
1077 | { | 1077 | { |
1078 | GNUNET_CHAT_VERSION_ASSERT(); | 1078 | GNUNET_CHAT_VERSION_ASSERT(); |
1079 | 1079 | ||
1080 | if ((!group) || (!contact)) | 1080 | if ((!group) || (!contact) || (!contact->member)) |
1081 | return; | 1081 | return; |
1082 | 1082 | ||
1083 | struct GNUNET_CHAT_Context *context = contact_find_context(contact); | 1083 | struct GNUNET_CHAT_Context *context = contact_find_context(contact); |
@@ -1637,7 +1637,7 @@ GNUNET_CHAT_message_get_recipient (const struct GNUNET_CHAT_Message *message) | |||
1637 | if ((!message) || (GNUNET_CHAT_FLAG_NONE != message->flag) || | 1637 | if ((!message) || (GNUNET_CHAT_FLAG_NONE != message->flag) || |
1638 | (!(message->context)) || (!(message->context->room))) | 1638 | (!(message->context)) || (!(message->context->room))) |
1639 | return NULL; | 1639 | return NULL; |
1640 | 1640 | ||
1641 | const struct GNUNET_MESSENGER_Contact *recipient = GNUNET_MESSENGER_get_recipient( | 1641 | const struct GNUNET_MESSENGER_Contact *recipient = GNUNET_MESSENGER_get_recipient( |
1642 | message->context->room, &(message->hash) | 1642 | message->context->room, &(message->hash) |
1643 | ); | 1643 | ); |